public void Destroy() { anim = null; mesh = null; if (cullingBounds != null) { cullingBounds.Release(); cullingBounds = null; } DestroyCullingGroup(); if (mtrls != null) { for (int i = 0; i < mtrls.Length; ++i) { mtrls[i].Destroy(); mtrls[i] = null; } mtrls = null; } if (texture != null) { //Object.DestroyImmediate(texture); texture = null; } if (players != null) { players.Clear(); players = null; } }
private void FillEvents(GPUSkinningClip clip, GPUSkinningBetterList <GPUSkinningAnimEvent> events) { events.Clear(); if (clip != null && clip.events != null && clip.events.Length > 0) { events.AddRange(clip.events); } }
public GPUSkinningCycleList(int bufferIncrement) { list = new GPUSkinningBetterList <T>(bufferIncrement); }