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?
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.
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.