In short: How can I properly inherit FoveInterface with its private Awake functions without changing its source code?
I am using Fove + Unity for research. The way I use the UnityPlugin is to create my own rig object and class that derives from the original one (say MyFoveInterface : FoveInterface). The class has a bunch of protected methods that give me the impression that inheritance is encouraged. The only problem is that FoveInterface hides its gameobject lifecycle methods like Awake(), with the exception of OnDisable() in the latest version 3.1.0, for some reason. My solution is to change them all to protected and add something like base.Awake() in my inherited class. Is there another way to solve this without changing the source code? Or do you think it make sense to change them to protected for future releases as well?
Thank you for your support!
Please sign in to leave a comment.