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)

nodeThe node to be updated.
positionThe position to move this node in local space.
Return ValueThis 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)

nodeThe node to be updated.
rotationThe rotation to move this node in local space.
Return ValueThis 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)

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