Hey everyone,
I’m currently facing a challenge while working on a custom inspector in Unity using UIToolKit. I have a MonoBehaviour called WorldGenerator, and within it, there’s a property named GenerationData, which is a ScriptableObject. My goal is to create a custom inspector using UIToolkit that displays both the properties of WorldGenerator and the properties within GenerationData.
So far, I’ve managed to display the properties of WorldGenerator in the custom inspector, but I’m struggling to figure out how to access and display the properties of GenerationData within the same inspector.
I’ve searched through the documentation and various forums, but I couldn’t find a solution that addresses this specific scenario.
This is the code:
The result:
Thank you in advance!