Making unity reflec realclass type for generic array slots?

Hi!,

I posted this some days ago on iphone subforum. No responses were given, so I will post this here to see if anyone can give an answer. Thanks.

This is a thing I found pretty annoying, and that is giving me a lot of headaches. If you public an array in a class with a base class as type, then, in editor if you drag&drop a derived class (I’m making this for scritable objects) just the fields of base class are shown. Is there anyway to make unity reflect the child class vars?.

Thanks in advance,
HexDump.

I think you’re out of luck with this one.

Treat this problem as you would any other OO scope problem. If you type something with a base class but then point to a derived class, you’re only going to be able to access the public interface of the base class. All public interfaces added by any extended classes will not be accessible.

Solution: Add public interfaces to the base class that derived classes override/overload.