예제 #1
0
		void OnEnable(){
			hm = (HorizonMaster)target;
			if (hm != null) {
				hm.InitLayerProps();
				hm.CheckMaterials ();
				hm.UpdateHorizonMaster();
				hm.UpdateMaterials ();
				hm.ShowWireFrame(hm.showWireF);
				SceneView.RepaintAll ();
			}
			string scriptLocation = AssetDatabase.GetAssetPath(MonoScript.FromScriptableObject(this));
			installPath = scriptLocation.Replace ("/Sources/Scripts/Editor/HorizonMasterEditor.cs", "");
			inspectorGUIPath = installPath + "/Sources/Scripts/Editor/InspectorGUI";
		}