Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Stop

Stops the looping animation on the referenced wire.
Read time 1 minuteLast updated 7 days ago

Definition

Stop(WireReference)

Stops the looping animation on the referenced wire.
public void Stop(WireReference wire)

Parameters

The wire on which to stop the animation.

Remarks

Stop a flow animation that was previously started on a wire using GraphMotion.Play.

Examples

WireReference wire = context.GetWireReference(outputPortID, inputPortID);context.Motion.Stop(wire);

Stop(NodeReference)

Stops the looping animation on the referenced node's accent and hides it.
public void Stop(NodeReference node)

Parameters

The node on which to stop the animation.

Remarks

If a fill amount has been set on the node (either via NodeReference.FillAmount or via the node model's
FillAmount
property), the bar remains visible at that fill amount instead. Throws ArgumentException when
node
doesn't correspond to a node in the current session.

Examples

NodeReference nodeRef = context.GetNodeReference(nodeID);context.Motion.Play(nodeRef, animationSpeed: 1f);// Later, stop the animation.context.Motion.Stop(nodeRef);