⚙️
FPS Framework
Asset StoreFab
  • Get Started
    • Welcome!
    • Setup
  • Tutorials
    • Character
      • First-Person Controller
      • Inventory
      • Firearm
        • Basics
        • Advanced
        • Other
          • Spray pattern
          • Attachment System
          • Projectile System
      • Explosive
    • Systems
      • Audio System
      • Animation System
      • Interactions
        • Pickable
      • Save System
      • Settings System
    • Tools
      • Extension Methods
    • UI
      • FPS Counter
      • Get Name
      • Image Size Fitter
  • Other
    • Full Change Log
      • 2025 Change Log
      • 2024 Change Log
      • 2023 Change Log
      • 2022 Change Log
Powered by GitBook
On this page
  • Fields
  • Setup with text
  • Setup with text mesh pro

Was this helpful?

  1. Tutorials
  2. UI

Get Name

A component responsible for updating text from transform.name

PreviousFPS CounterNextImage Size Fitter

Last updated 1 year ago

Was this helpful?

Get Name is an easy-to-use component that makes creating and managing large UIs and menus a lot easier without having to change each text manually. It takes the value of the to the given text element.

Fields

Name
Description

Target

Target object that the component will take the name from, settings this to any object will update the text to that object's name

Setup with

To add the component, first create a new button by hovering your mouse cursor over any empty space and access the create menu by clicking on UI, then Legecy, then Button.

Now that you have created a legacy button, expand the button and add the component GetName to the text inside of your button. After adding the component, the text should be equal to the target object's name.

To add the component, first create a new button by hovering your mouse cursor over any empty space in the hierarchy, and then click on the menu UI, then click on the item Button - TextMeshPro like this:

Now that you've created a button, expand the button and add the component GetName to the text mesh pro inside of your button. After adding the component, the text should be equal to the target object's name.

Setup with

text mesh pro
transform name
text
Create button menu
Create Text Mesh Pro Button menu