ClearAllVisualization()
Clears all visualization data associated with this context.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor.GraphVisualization
- Assembly: UnityEditor
public void ClearAllVisualization()
Remarks
Removes any visuals on the graph canvas that were added through this context. The context itself is not disposed and remains valid for setting new visualization data.
Examples
// Set up a context and apply visualization changes to a few nodes.Context context = Registry.CreateVisualizationContext(graphGuid);NodeReference firstNode = context.GetNodeReference(firstNodeID);firstNode.FillAmount = 75f;NodeReference secondNode = context.GetNodeReference(secondNodeID);context.Motion.Play(secondNode, animationSpeed: 1f);// Reset all visualization between runs without disposing the context.// Fill amounts and animations applied above are cleared; the context can be reused.context.ClearAllVisualization();