Reply To: Custom Editor For Custom Action

Forums 💬 NodeCanvas 🗨️ General Discussion Custom Editor For Custom Action Reply To: Custom Editor For Custom Action

#15009
Gavalakis
Keymaster

    Hey,

    Yes you can make your own inspector editor by overriding the virtual protected void OnTaskInspectorGUI.
    If you just want to add a button for example, you can even call DrawDefaultInspector() within it, to draw the default inspector.
    Finaly note that fields with [HideInInspector] won’t show.

    So it prety much works like when you make normal custom editor inspectors.
    Just make sure that you put this within an #if UNITY_EDITOR 🙂

    Let me know if you need more help with that.