Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Creating a tool - where do I define the menu object to be instantiated?

Discussion in 'EditorXR' started by mcarney, Apr 7, 2017.

  1. mcarney

    mcarney

    Joined:
    Jul 25, 2013
    Posts:
    7
    I'm working on recreating the CreatePrimitiveTool. I'm able to have the tool show up in the menu, however when I click the tool I get an error.

    I'm not sure where to define which GO to instantiate for my menu.
     
    Last edited: Apr 7, 2017
  2. mcarney

    mcarney

    Joined:
    Jul 25, 2013
    Posts:
    7
    Eh, nevermind, I got it.

    I had to define the Menu Prefab within CreatePrimitiveTool.cs
     
    Last edited: Apr 7, 2017