What's the right way to extend & add to Tri-Inspector? #66
Answered
by
vanifatovvlad
BrennonTWilliams
asked this question in
Q&A
-
I love Tri-Inspector, but want to add in some additional Editor code to draw preview textures, icon buttons, colored background areas, etc. Is there a class I should override to enable some of this via Editor.OnSceneGUI() etc? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
vanifatovvlad
Jan 1, 2023
Replies: 1 comment 1 reply
-
You can explore the implementations of drawers, group drawers and validators. To implement a new drawer you need to create a class derived from The written class must be registered with |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BrennonTWilliams
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can explore the implementations of drawers, group drawers and validators.
To implement a new drawer you need to create a class derived from
TriAttributeDrawer<>
and implement theCreateElement
method (sample).The written class must be registered with
RegisterTriAttributeDrawer
attribute.