elix22 / Urho.Net-Samples

MIT License
1 stars 1 forks source link

Component in file hotload cannot be casted to the actual component #3

Open vutle opened 3 years ago

vutle commented 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); }

vutle commented 3 years ago

Did you have a chance to look at this issue?

elix22 commented 3 years ago

Not yet . I have higher priority stuff ...