public void OnEnable()
        {
            SurfaceAbstractBehaviour arg_22_0 = (SurfaceAbstractBehaviour)base.target;

            this.mSerializedObject = new SerializedSmartTerrainTrackable(base.serializedObject);
            SurfaceEditor.EditorConfigureTarget(arg_22_0, this.mSerializedObject);
        }
 public static void EditorConfigureTarget(SurfaceAbstractBehaviour surface, SerializedSmartTerrainTrackable serializedObject)
 {
     if (surface == null)
     {
         Debug.LogError("SurfaceAbstractBehaviour parameter is null !");
         return;
     }
     if (VuforiaUtilities.GetPrefabType(surface) == PrefabType.Prefab)
     {
         return;
     }
     if (!SceneManager.Instance.SceneInitialized)
     {
         SceneManager.Instance.InitScene();
     }
     using (serializedObject.Edit())
     {
         if (!EditorApplication.isPlaying)
         {
             serializedObject.InitializedInEditor = true;
         }
     }
 }
 /// <summary>
 /// Called when the geometry of a surface has been updated
 /// </summary>
 public void OnSurfaceUpdated(SurfaceAbstractBehaviour surfaceBehaviour)
 {
 }
Beispiel #4
0
 public void OnSurfaceUpdated(SurfaceAbstractBehaviour surfaceBehaviour)
 {
     Debug.Log("--- Primary surface has been updated");
 }
 /// <summary>
 /// Called when the geometry of a surface has been updated
 /// </summary>
 public void OnSurfaceUpdated(SurfaceAbstractBehaviour surfaceBehaviour)
 {
 }