public void OnDestroy() { ResNode.DestroyRes(ref m_LineRender); m_LineRender = null; FadeInOutMaterialColor = null; FadeInOutMaterialFloat = null; UVTextureAnimator = null; UVScroll = null; LocalSrcObj = null; LocalDstObj = null; GolbalDstObj = null; GolbalSrcObj = null; StopMaterialControl(); }
/// <summary> /// 拷贝编辑器变量 /// </summary> /// <param name="FromInstance">从哪一个拷贝</param> public void CopyInspectorParamsTo(Effect_UVTextureAnimator FromInstance) { RunMode = FromInstance.RunMode; TexturePropertyName = FromInstance.TexturePropertyName; Rows = FromInstance.Rows; Columns = FromInstance.Columns; Fps = FromInstance.Fps; OffsetMat = FromInstance.OffsetMat; SelfTiling = FromInstance.SelfTiling; AniTimes = FromInstance.AniTimes; fStartDelay = FromInstance.fStartDelay; IsReverse = FromInstance.IsReverse; IsRandomOffsetForInctance = FromInstance.IsRandomOffsetForInctance; }
public void OnDestroy() { FadeInOutMaterialColor = null; FadeInOutMaterialFloat = null; UVTextureAnimator = null; UVScroll = null; HostTransform = null; hostRender = null; HostCamera = null; if (m_InstanceMat) { ResNode.DestroyRes(ref m_InstanceMat); if (HostGo) { ResNode.DestroyRes(ref HostGo); } } }
public void OnEnable() { pa = target as Effect_UVTextureAnimator; }