Get Name
A component responsible for updating text from transform.name
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 transform name to the given text element.
Fields
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 text
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.

Setup with text mesh pro
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.

Last updated
Was this helpful?