Spout.SpoutReceiver.OnEnable C# (CSharp) Method

OnEnable() private method

private OnEnable ( ) : void
return void
		void OnEnable(){
			//Debug.Log("SpoutReceiver.OnEnable");
			//Add the listener immediately to get the events when Unity starts and the Spout plugin initialize. 
			//Otherwise the external Spout Senders have to start afterwards to trigger the native plugin events
			Spout.instance.addListener(TexShared,TexStopped);

			#if UNITY_EDITOR
			
			if(!Application.isPlaying){
				UnityEditor.EditorApplication.update -= _Update;
				UnityEditor.EditorApplication.update += _Update;
			}
			#endif

			_receiverIsReady = false;
			_startUpFrameCount = 0;
			if(!_startupDelay)_ForceTextureUpdate();
			
		}