Search Unity

Question Open up gameobject name textfield via code.

Discussion in 'Editor & General Support' started by KartMakerBrosU, Jan 28, 2023.

  1. KartMakerBrosU

    KartMakerBrosU

    Joined:
    Aug 14, 2021
    Posts:
    3
    So when you normally create a GameObject in unity, a text box for its name appears along with a preset name, like for a Cube when you create one, its name field in the hierarchy opens and you can edit it right then and there but it already has a placeholder name in it. How would one recreate that in an editor script if I want to instantiate my own GameObject?