Interface IFlexalonTransformUpdater
- Namespace
- Flexalon
- Assembly
- Flexalon.dll
A transform updater determines how an object gets from its current position to the computed layout position.
public interface IFlexalonTransformUpdater
Methods
PreUpdate(IFlexalonNode)
Called before the layout system starts updating any transforms. Use this to capture the transform position. Settled nodes with unchanged inputs can be skipped; use MarkDirtyTransformUpdater to request another update.
void PreUpdate(IFlexalonNode node)
Parameters
nodeIFlexalonNodeThe node being updated.
UpdatePosition(IFlexalonNode, Vector3)
Called to update the position of the object.
bool UpdatePosition(IFlexalonNode node, Vector3 position)
Parameters
nodeIFlexalonNodeThe node being updated.
positionVector3The computed local position of the object.
Returns
- bool
UpdateRectSize(IFlexalonNode, Vector2)
Called to update the rect of the object.
bool UpdateRectSize(IFlexalonNode node, Vector2 rect)
Parameters
nodeIFlexalonNodeThe node being updated.
rectVector2The computed rect of the object.
Returns
- bool
UpdateRotation(IFlexalonNode, Quaternion)
Called to update the rotation of the object.
bool UpdateRotation(IFlexalonNode node, Quaternion rotation)
Parameters
nodeIFlexalonNodeThe node being updated.
rotationQuaternionThe computed local rotation of the object.
Returns
- bool
UpdateScale(IFlexalonNode, Vector3)
Called to update the scale of the object.
bool UpdateScale(IFlexalonNode node, Vector3 scale)
Parameters
nodeIFlexalonNodeThe node being updated.
scaleVector3The computed local scale of the object.
Returns
- bool