SA.FullBodyIK.Destroy C# (CSharp) Method

Destroy() public method

public Destroy ( ) : void
return void
		public void Destroy()
		{
#if UNITY_EDITOR
			if( _effectors != null ) {
				for( int i = 0; i < _effectors.Length; ++i ) {
					if( _effectors[i] != null && _effectors[i].transform != null ) {
						GameObject.DestroyImmediate( _effectors[i].transform.gameObject );
					}
                }
			}
#endif
		}

Usage Example

Example #1
0
        void OnDestroy()
        {
#if UNITY_EDITOR
            if (_fullBodyIK != null)
            {
                _fullBodyIK.Destroy();
            }
#endif
        }
All Usage Examples Of SA.FullBodyIK::Destroy
FullBodyIK