tk2dEditor.tk2dCameraSceneGUI.Destroy C# (CSharp) Method

Destroy() public method

public Destroy ( ) : void
return void
        public void Destroy()
        {
            if (previewCamera != null)
            {
                Object.DestroyImmediate(previewCamera);
                previewCamera = null;
            }
        }

Usage Example

Example #1
0
 void OnDisable()
 {
     if (sceneGUIHandler != null)
     {
         sceneGUIHandler.Destroy();
         sceneGUIHandler = null;
     }
 }
All Usage Examples Of tk2dEditor.tk2dCameraSceneGUI::Destroy