-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VRTK removes custom editor/property drawers #53
Comments
I'm not aware of a solution. Both projects have to use Unity API ( |
Is there a replacement already available in VRTK? |
This is done in Malimbe here, which is used as part of VRTK. Malimbe does it to pull of reactive change handling for any property change (in this case for in-inspector changes). Without this, changes in the inspector to any VRTK/Zinnia component won't be noticed - components are no longer reactive to changes done in the inspector. |
I just looked into malimbe and i think you had a possible solution to this #38 |
Ha well that would do it of course as it just gets rid of our "injected" drawer 😉 Big project, though. Perhaps there's a way to tell Unity to prefer one I suggest to set |
Thanks for the time to look into this. One final question then this issue could be closed, would PropertyDrawer works for the HandlesMemberChangeAttribute? |
Sadly it won't - that API does not allow replacing any type. The only alternative I was seeing in the past was to implement a wrapping type like While we can solve the inspector drawing that in a weird way (that's what a
|
I believe the original issue can be resolved by making Malimbe's This would allow plugging in any additional (i.e. it's additive, I'm not interested in offering some conditional drawing just yet) drawing. |
Great! Is it also possible to add a separator or even a foldable box for the additional custom parts? Ps. I find that i can derive an editor for specific component to show that particular custom editor. |
Yes. This has always been the case. Custom property drawers are being used, we only have issues with other
That is also expected and is default Unity behavior - it matches by type, and obviously |
Apparently Odin has done something to make Odin play nice with VRTK, would be good to find out exactly what that was to see if we could apply something to play nicely with other custom editors. |
Environment
Source of VRTK (Unity Asset Store or GitHub).
https://github.com/ExtendRealityLtd/VRTK.git
Version of VRTK (Unity Asset Store/GitHub release number) (GitHub master commit hash).
master #12df6d9
Version of the Unity software (e.g. Unity 2018.3).
2019.1.0f2
Steps to reproduce
I am using this inspector
https://github.com/SubjectNerd-Unity/ReorderableInspector
I uncommented ReorderableArrayInspector.cs
line 24 to turn all arrays into reorderable lists
line 27 to make all ScriptableObject fields editable
then after I install VRTK, those inspectors are no longer available
Expected behavior
the inspectors from SubjectNerd-Unity/ReorderableInspector should be available
Current behavior
those inspectors from SubjectNerd-Unity/ReorderableInspector are not available
The text was updated successfully, but these errors were encountered: