Open vutle opened 3 years ago
If we try to cast the component after it is loaded from file to its object, it will give an error. for example:
Component comp = dynamicComponentManager.CreateComponent("Rotator.cs"); if (comp != null) { Rotator r = (Rotator)comp; // Error here... mushroom.AddComponent(comp); }
Did you have a chance to look at this issue?
Not yet . I have higher priority stuff ...
If we try to cast the component after it is loaded from file to its object, it will give an error. for example:
Component comp = dynamicComponentManager.CreateComponent("Rotator.cs"); if (comp != null) { Rotator r = (Rotator)comp; // Error here... mushroom.AddComponent(comp); }