Custom Editor For Custom Action

Forums 💬 NodeCanvas 🗨️ General Discussion Custom Editor For Custom Action

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15008
    atmuc
    Participant

      i will write a custom action that changes sprite of 2D Toolkit. there will be a drop down for sprite collection and second drop down for sprite that is from selected sprite collection. how can i do that?

      #15010
      atmuc
      Participant

        i examined GetField.cs and did something. it works.

        #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.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.