Not using MonoBehaviour for NoesisGUI in Unity
Posted: 16 Oct 2015, 10:40
Hi again,
I am probably not your typical Unity developer, in that my game is written primarily in code (with minimal use of MonoBehaviour or ScriptableObject).
I have separated NoesisGUIPanel from the Monobehaviour, and instead call the relevant methods as required. This works perfectly, but it means that my code is deviating from yours (the Noesis GUI dev's), and each update I may need to revise mine.
I was wondering if you (the developers of Noesis GUI) would be interested in separating the NoesisGUIPanel from the MonoBehaviour, to allow people like me to use your code without modifying it?
My thinking on how it would work:
The current NoesisGUIPanel is renamed to NoesisGUIEntry, and has all of it's MonoBehaviour elements removed. Instead it has just the methods and properties which are required.
A new NoesisGUIPanel MonoBehaviour class is created. It creates, manages, and calls methods on a NoesisGUIEntry object. The end result is that it's behaviour to the end user does not change, but it allows programmers (like me) to easily create and manage NoesisGUIEntry objects in code, without requiring GameObjects.
NoesisGUISystem still remains as a MonoBehaviour/GameObject.
I realise this is asking for something which many do not need or want. Maybe I am the only one.
I would be happy to write the revised system if you are interested in reviewing it? I have considered and tested all of the issues, including graceful destruction.
Thanks,
Mark
I am probably not your typical Unity developer, in that my game is written primarily in code (with minimal use of MonoBehaviour or ScriptableObject).
I have separated NoesisGUIPanel from the Monobehaviour, and instead call the relevant methods as required. This works perfectly, but it means that my code is deviating from yours (the Noesis GUI dev's), and each update I may need to revise mine.
I was wondering if you (the developers of Noesis GUI) would be interested in separating the NoesisGUIPanel from the MonoBehaviour, to allow people like me to use your code without modifying it?
My thinking on how it would work:
The current NoesisGUIPanel is renamed to NoesisGUIEntry, and has all of it's MonoBehaviour elements removed. Instead it has just the methods and properties which are required.
A new NoesisGUIPanel MonoBehaviour class is created. It creates, manages, and calls methods on a NoesisGUIEntry object. The end result is that it's behaviour to the end user does not change, but it allows programmers (like me) to easily create and manage NoesisGUIEntry objects in code, without requiring GameObjects.
NoesisGUISystem still remains as a MonoBehaviour/GameObject.
I realise this is asking for something which many do not need or want. Maybe I am the only one.
I would be happy to write the revised system if you are interested in reviewing it? I have considered and tested all of the issues, including graceful destruction.
Thanks,
Mark