Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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