Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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