public interface IMyInterface { }
---
public class MyObject : MonoBehaviour, IMyInterface { }
---
IMyInterface mObj;
Instantiate(mObj);
I want to make something like this possible, however, understandably, this approach isn't possible as Unity can't be certain that mObj derives from MonoBehaviour.
Any knowledge on an alternative approach or how to make this one possible would be appreciated. Thanks.