Documentation

Unity Engine

Download Unity

Unity Engine

Remove

Removes the skeleton node that has the same identifier as a node.
Read time 3 minutesLast updated 4 hours ago

Definition

Remove(SkeletonNode)

Removes the skeleton node that has the same identifier as a node.
public bool Remove(in SkeletonNode node)

Parameters

A node with the identifier of the node to remove.

Returns

Type

Description

boolTrue if the builder had a node with the identifier. Otherwise, false.

Remarks

The method only compares the SkeletonNode.Id. It also removes the descendants of the node and the sockets attached to the removed nodes.
The method decreases the index of each node after a removed node, and updates the SkeletonNode.ParentIndex of the nodes and the SocketNode.BoneParentIndex of the sockets to match.

Remove(LocalTranslationChannel)

Removes the translation channels that have the same identifier as a channel.
public bool Remove(in LocalTranslationChannel channel)

Parameters

A channel with the identifier of the channels to remove.

Returns

Type

Description

boolTrue if the builder had a channel with the identifier. Otherwise, false.

Remarks

The method only compares the identifiers, like Equals. It doesn't change the bones, which always have a translation channel. To remove a bone, use RigBuilder.Remove.

Remove(LocalRotationChannel)

Removes the rotation channels that have the same identifier as a channel.
public bool Remove(in LocalRotationChannel channel)

Parameters

A channel with the identifier of the channels to remove.

Returns

Type

Description

boolTrue if the builder had a channel with the identifier. Otherwise, false.

Remarks

The method only compares the identifiers, like Equals. It doesn't change the bones, which always have a rotation channel. To remove a bone, use RigBuilder.Remove.

Remove(LocalScaleChannel)

Removes the scale channels that have the same identifier as a channel.
public bool Remove(in LocalScaleChannel channel)

Parameters

A channel with the identifier of the channels to remove.

Returns

Type

Description

boolTrue if the builder had a channel with the identifier. Otherwise, false.

Remarks

The method only compares the identifiers, like Equals. It doesn't change the bones, which always have a scale channel. To remove a bone, use RigBuilder.Remove.

Remove(FloatChannel)

Removes the skeleton node that has the same identifier as a node.
public bool Remove(in FloatChannel channel)

Parameters

Returns

Type

Description

boolTrue if the builder had a node with the identifier. Otherwise, false.

Remarks

The method only compares the SkeletonNode.Id. It also removes the descendants of the node and the sockets attached to the removed nodes.
The method decreases the index of each node after a removed node, and updates the SkeletonNode.ParentIndex of the nodes and the SocketNode.BoneParentIndex of the sockets to match.

Remove(IntChannel)

Removes the integer channels that have the same identifier as a channel.
public bool Remove(in IntChannel channel)

Parameters

channel

A channel with the identifier of the channels to remove.

Returns

Type

Description

boolTrue if the builder had a channel with the identifier. Otherwise, false.

Remarks

The method only compares the identifiers, like Equals.

Remove(EntityIdChannel)

Removes the entity ID channels that have the same identifier as a channel.
public bool Remove(in EntityIdChannel channel)

Parameters

A channel with the identifier of the channels to remove.

Returns

Type

Description

boolTrue if the builder had a channel with the identifier. Otherwise, false.

Remarks

The method only compares the identifiers, like Equals.

Remove(SocketNode)

Removes the sockets that have the same identifier as a socket.
public bool Remove(in SocketNode socketNode)

Parameters

socketNode

A socket with the identifier of the sockets to remove.

Returns

Type

Description

boolTrue if the builder had a socket with the identifier. Otherwise, false.

Remarks

The method only compares the SocketNode.Id. It decreases by one the index of each socket after a removed socket.