// public Texture2D texHeight; // [HideInInspector] public byte[] treemap; // [HideInInspector] public byte[] objectmap; public void DisposeTextures() { TC_Compute.DisposeRenderTexture(ref rtHeight); TC_Compute.DisposeTexture(ref texHeight); TC_Compute.DisposeTexture(ref texColormap); TC_Compute.DisposeTexture(ref texNormalmap); }
void OnDestroy() { TC_Compute.DisposeTexture(ref tex); if (!callDestroy) { TC.refreshOutputReferences = TC.allOutput; } }
void OnDestroy() { TC_Compute.DisposeTexture(ref tex); #if UNITY_EDITOR if (!UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode && !callDestroy) { TC.RefreshOutputReferences(TC.allOutput); } #else if (!callDestroy) { TC.RefreshOutputReferences(TC.allOutput); } #endif }