Interface TransformUpdater
A transform updater determines how an object gets from its current position to the computed layout position.
Syntax
public interface TransformUpdater
Methods
PreUpdate(FlexalonNode)
Called before the layout system starts updating any transforms. Use this to capture the transform position.
Declaration
void PreUpdate(FlexalonNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| FlexalonNode | node | The node being updated. |
UpdatePosition(FlexalonNode, Vector3)
Called to update the position of the object.
Declaration
bool UpdatePosition(FlexalonNode node, Vector3 position)
Parameters
| Type | Name | Description |
|---|---|---|
| FlexalonNode | node | The node being updated. |
| UnityEngine.Vector3 | position | The computed local position of the object. |
Returns
| Type | Description |
|---|---|
| bool |
UpdateRectSize(FlexalonNode, Vector2)
Called to update the rect of the object.
Declaration
bool UpdateRectSize(FlexalonNode node, Vector2 rect)
Parameters
| Type | Name | Description |
|---|---|---|
| FlexalonNode | node | The node being updated. |
| UnityEngine.Vector2 | rect | The computed rect of the object. |
Returns
| Type | Description |
|---|---|
| bool |
UpdateRotation(FlexalonNode, Quaternion)
Called to update the rotation of the object.
Declaration
bool UpdateRotation(FlexalonNode node, Quaternion rotation)
Parameters
| Type | Name | Description |
|---|---|---|
| FlexalonNode | node | The node being updated. |
| UnityEngine.Quaternion | rotation | The computed local rotation of the object. |
Returns
| Type | Description |
|---|---|
| bool |
UpdateScale(FlexalonNode, Vector3)
Called to update the scale of the object.
Declaration
bool UpdateScale(FlexalonNode node, Vector3 scale)
Parameters
| Type | Name | Description |
|---|---|---|
| FlexalonNode | node | The node being updated. |
| UnityEngine.Vector3 | scale | The computed local scale of the object. |
Returns
| Type | Description |
|---|---|
| bool |