Table of Contents

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

node IFlexalonNode

The node being updated.

UpdatePosition(IFlexalonNode, Vector3)

Called to update the position of the object.

bool UpdatePosition(IFlexalonNode node, Vector3 position)

Parameters

node IFlexalonNode

The node being updated.

position Vector3

The 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

node IFlexalonNode

The node being updated.

rect Vector2

The 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

node IFlexalonNode

The node being updated.

rotation Quaternion

The 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

node IFlexalonNode

The node being updated.

scale Vector3

The computed local scale of the object.

Returns

bool