ExtendRealityLtd / Zinnia.Unity

A collection of design patterns for solving common problems.
http://vrtk.io
MIT License
319 stars 38 forks source link

fix(Attribute): prevent null exception from RestrictedAttributeDrawer #597

Closed thestonefox closed 1 month ago

thestonefox commented 1 month ago

The Restricted Attribute Drawer can thrown an exception when using the Unity Quick Search functionality due to the EditorStyles not being available to assign to static fields.

Instead these fields are now just assigned in the OnGUI method before the properties are changed, this seems to resolve the error.

ExtendReality-Bot commented 1 month ago

:tada: This PR is included in version 2.16.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: