示例#1
0
 public void EditorUpdate()
 {
     TrackableBehaviour[]             trackables = (TrackableBehaviour[])UnityEngine.Object.FindObjectsOfType(typeof(TrackableBehaviour));
     VirtualButtonAbstractBehaviour[] arg_31_0   = (VirtualButtonAbstractBehaviour[])UnityEngine.Object.FindObjectsOfType(typeof(VirtualButtonAbstractBehaviour));
     this.CorrectTrackableScales(trackables);
     VirtualButtonEditor.CorrectPoses(arg_31_0);
     if (this.mDoDeserialization)
     {
         ConfigDataManager.Instance.DoRead();
         bool flag = DatabaseLoadEditor.OnConfigDataChanged();
         this.ApplyDataSetAppearance();
         this.mDoDeserialization = !flag;
     }
     if (this.mApplyAppearance)
     {
         this.UpdateTrackableAppearance(trackables);
         this.mApplyAppearance = false;
     }
     if (this.mApplyProperties)
     {
         this.UpdateTrackableProperties(trackables);
         this.mApplyProperties = false;
     }
     if (this.mValidateScene)
     {
         this.CheckForDuplicates(trackables);
         WordEditor.CheckForDuplicates();
         VirtualButtonEditor.Validate();
         this.mValidateScene = false;
     }
     if (this.mGoToTargetManagerPage)
     {
         this.mGoToTargetManagerPage = false;
         Process.Start("https://developer.vuforia.com/target-manager");
     }
     if (this.mGoToSampleAppPage)
     {
         this.mGoToSampleAppPage = false;
         Process.Start("https://developer.vuforia.com/downloads/samples");
     }
     if (this.mUnloadUnusedAssets)
     {
         Resources.UnloadUnusedAssets();
         this.mUnloadUnusedAssets = false;
     }
 }