コード例 #1
0
        public void OnEnable()
        {
            PropAbstractBehaviour arg_22_0 = (PropAbstractBehaviour)base.target;

            this.mSerializedObject = new SerializedProp(base.serializedObject);
            PropEditor.EditorConfigureTarget(arg_22_0, this.mSerializedObject);
        }
コード例 #2
0
 public static void EditorConfigureTarget(PropAbstractBehaviour prop, SerializedProp serializedObject)
 {
     if (prop == null)
     {
         Debug.LogError("PropAbstractBehaviour parameter is null !");
         return;
     }
     if (VuforiaUtilities.GetPrefabType(prop) == PrefabType.Prefab)
     {
         return;
     }
     if (!SceneManager.Instance.SceneInitialized)
     {
         SceneManager.Instance.InitScene();
     }
     using (serializedObject.Edit())
     {
         if (!EditorApplication.isPlaying)
         {
             serializedObject.InitializedInEditor = true;
         }
     }
 }