void OnEnable() { aryzonTracking = (AryzonTracking)target; logo = Resources.Load("LogoAryzonSidebar") as Texture; trackingEngineProp = serializedObject.FindProperty("trackingEngine"); useARCoreProp = serializedObject.FindProperty("useARCore"); useARKitProp = serializedObject.FindProperty("useARKit"); useVuforiaProp = serializedObject.FindProperty("useVuforia"); useOtherProp = serializedObject.FindProperty("useOther"); arCoreTransformProp = serializedObject.FindProperty("arCoreTransform"); arKitTransformProp = serializedObject.FindProperty("arKitTransform"); vuforiaTransformProp = serializedObject.FindProperty("vuforiaTransform"); otherTransformProp = serializedObject.FindProperty("otherTransform"); setAryzonModeOnStartProp = serializedObject.FindProperty("setAryzonModeOnStart"); sceneUnitsProp = serializedObject.FindProperty("sceneUnits"); customUnitsProp = serializedObject.FindProperty("customUnits"); m_OnClickProperty = serializedObject.FindProperty("onClick"); arCoreTransform = aryzonTracking.arCoreTransform; arKitTransform = aryzonTracking.arKitTransform; vuforiaTransform = aryzonTracking.vuforiaTransform; otherTransform = aryzonTracking.otherTransform; onARCoreStartProp = serializedObject.FindProperty("onARCoreStart"); onARCoreStopProp = serializedObject.FindProperty("onARCoreStop"); onARCoreSetProp = serializedObject.FindProperty("onARCoreSet"); onARKitStartProp = serializedObject.FindProperty("onARKitStart"); onARKitStopProp = serializedObject.FindProperty("onARKitStop"); onARKitSetProp = serializedObject.FindProperty("onARKitSet"); onVuforiaStartProp = serializedObject.FindProperty("onVuforiaStart"); onVuforiaStopProp = serializedObject.FindProperty("onVuforiaStop"); onVuforiaSetProp = serializedObject.FindProperty("onVuforiaSet"); onOtherStartProp = serializedObject.FindProperty("onOtherStart"); onOtherStopProp = serializedObject.FindProperty("onOtherStop"); onOtherSetProp = serializedObject.FindProperty("onOtherSet"); onStartProp = serializedObject.FindProperty("onStart"); onStopProp = serializedObject.FindProperty("onStop"); onRotationToPortraitProp = serializedObject.FindProperty("onRotationToPortrait"); onRotationToLandscapeProp = serializedObject.FindProperty("onRotationToLandscape"); EditorApplication.playModeStateChanged += ResetView; initializeGameView(); }
void Start() { backgroundLoadingImage = transform.Find("Background").GetComponent <Animation>(); ButtonText = transform.Find("Status Text").GetComponent <Text>(); arytracking = GameObject.Find("Aryzon").GetComponent <AryzonTracking>(); }