Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Tools API

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

  1. Reddevildragg


    May 19, 2014

    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