private void OnDisable() { Instance = null; //Disable sampling of color map GrassColorMap.DisableGlobally(); #if UNITY_EDITOR EditorSceneManager.sceneSaved -= OnSceneSave; #endif }
public void OnEnable() { Instance = this; Init(); if (colorMap) { colorMap.SetActive(); } else { if (!GrassColorMapRenderer.Instance) { GrassColorMap.DisableGlobally(); } } #if UNITY_EDITOR UnityEditor.SceneView.duringSceneGui += OnSceneGUI; #endif }
private void OnDisable() { Instance = null; //Disable sampling of color map GrassColorMap.DisableGlobally(); }