Unity: Best way to access parent NoesisView from xaml code behind?
Posted: 11 Mar 2018, 19:33
Hello,
Currently I am getting access to the parent NoesisView from xaml code behind this way:
NoesisView nv = GameObject.FindWithTag("GUICamera").GetComponent<NoesisView>();
But that requires me to always know the game object (GUICamera) the view is attached to.
Is there a better way to find this from a UserControl's code behind?
Thanks
Jake
Currently I am getting access to the parent NoesisView from xaml code behind this way:
NoesisView nv = GameObject.FindWithTag("GUICamera").GetComponent<NoesisView>();
But that requires me to always know the game object (GUICamera) the view is attached to.
Is there a better way to find this from a UserControl's code behind?
Thanks
Jake