UniSiegenWiNeMe / AR-Instructions-Unity

Tool for creating and watching instructions on HoloLens
GNU General Public License v3.0
8 stars 4 forks source link

Can't access Interactable script on HomeButton #46

Closed FlorianJa closed 4 years ago

FlorianJa commented 4 years ago

In HoloLens, the mainpanel is inactive on startup. This results in not getting the mainpanelcontroller by the getComponent method. Pass the reference to the Button / Interactable in another way.

https://github.com/UniSiegenWiNeMe/AR-Instructions-Unity/blob/abb17f4fbcefa715031d69533821e79f1a48b4e8/Assets/GUIManager.cs#L161-L173