AnimancerState.

ChangeMainObject<T>(T, T) Method

Summary

Sets the `currentObject` and calls Animancer.AnimancerNode.RecreatePlayable. If the `currentObject` was being used as the Animancer.AnimancerState.Key then it is changed as well.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerState

Syntax

protected void ChangeMainObject<T>(ref T currentObject, T newObject) where T : Object

Type Parameters

Name Description
T

Parameters

Name Type Description
currentObject T
newObject T

Return Value

Type Description
void