Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

Context.ClearAllVisualization

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void ClearAllVisualization();

Description

Clears all visualization data associated with this context.

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.

 // 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();