public void ClickClose() { // ...这里暂无判空等检测 graph.Disconnect(mixer, 0); graph.Disconnect(mixer, 1); graph.DestroyPlayable(mixer); graph.DestroyOutput(output); // cube位置会停在销毁的时刻 }
/// <summary> /// Removes clip from animate Graph /// </summary> public void Remove(AnimationClip clip) { if (!clip) { return; } if (playableLookup.TryGetValue(clip, out var playable)) { graph.DestroyPlayable(playable); playableLookup.Remove(clip); } }
public void RemoveNode(BaseNode node) { PlayableGraph.DestroyPlayable(node.Playable); Nodes.Remove(node.Name); }