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

Tools API

Discussion in 'Scripting' started by Reddevildragg, Jul 9, 2019.

  1. Reddevildragg

    Reddevildragg

    Joined:
    May 19, 2014
    Posts:
    50
    Hi

    Just started working with 2019.1 and looking at the new EditorTool API and thinking how useful this this. Just wondering if there is a way to make this just fire an event instead of having like a transform tool as would be even more useful if i can just have a button thats easy to click (not in the menu systems where they are now) to perform a certain action.

    Looking at the code it does look like its set up to mainly be used with the transform tools and only way i can really think is to hack it slightly to swap the tool back to the movement tool when it is selected after calling the event. Just wondering if there is a slightly better way to do this.

    Also i noticed the bottom right only have buttons that are on the tools for the object you selected, guess there is not a way to have a button here even if no tool is selected (ie the global fire event buttons)

    Thanks for any help/pointers