Hi Everyone:)
Let’s say I have the following classes:
public class A
{
[SerializeField] Base base;
....
}
public class Base
{
...
}
public class Child : Base
{
...
}
}
*Assume that ‘base’ member in class ‘A’ contains a reference to ‘Child’ class
When I try to add a property drawer to class A and try to find the member ‘base’ with the FindPropertyRelative method (so I can draw the ‘child’ class in the inspector) it always returns null for some reason ![]()
Also, when I use a reference to ‘Child’ (replace the ‘Base’ member reference with the ‘Child’ reference it works!
Can someone help me with this?
Thanks:)