I have a class inherited to another class, and I can't get the transform on the inherited class.
Here's what i have and trying to do
Class A:Monobehavior{}
Class B:A{}
//somewhere else
A object = new B();
but right now, whenever I try to get the transform of object, either from a function in B or out here via object.transform
, it will always return null.
How do I fix this?