Custom Animators

You can create your own animator by implementing TransformUpdater. To set your class as the updater for a node, call:

Flexalon.GetOrCreateNode(gameObject).SetTransformUpdater(yourObject);

UpdatePosition

bool UpdatePosition(FlexalonNode node, Vector3 position)

node The node to be updated.
position The position to move this node in local space.
Return Value This method will be called every frame until it returns false. Then, it will be called again if the layout position changes.

UpdateRotation

bool UpdateRotation(FlexalonNode node, Quaternion rotation)

node The node to be updated.
rotation The rotation to move this node in local space.
Return Value This method will be called every frame until it returns false. Then, it will be called again if the layout rotation changes.

UpdateScale

bool UpdateScale(FlexalonNode node, Vector3 scale)

node The node to be updated.
scale The scale to move this node in local space.
Return Value This method will be called every frame until it returns false. Then, it will be called again if the layout scale changes.

© 2022 Virtual Maker Corporation