UnityEditor.WebCamTextureInspector.OnDisable C# (CSharp) Method

OnDisable() public method

public OnDisable ( ) : void
return void
        public void OnDisable()
        {
            WebCamTexture target = base.target as WebCamTexture;
            if (!Application.isPlaying && (target != null))
            {
                target.Stop();
            }
        }