ruccho / UniTyped

UniTyped is a source generator that allows typed access to data such as SerializedObjects, material parameters, tags and layers.
MIT License
167 stars 5 forks source link

Is there a way to access properties, or reference fields, interfaces? #6

Closed whynames closed 8 months ago

whynames commented 9 months ago

For an editor window, Is there a way to access properties, reference fields or interfaces?

ruccho commented 9 months ago

The purpose of using UniTyped is to access Unity serialized values through SerializedProperty with the same syntax as regular C# objects. To access non-serialized fields, use the underlying C# object directly (in this case EditorWindow).