UIBlock.TrySetWorldPosition
TrySetWorldPosition(Vector3)
Move this UIBlock to the given Transform worldPosition
and update Position accordingly such that when the Nova Engine
recalculates the modified layout properties, the resulting
transform.position
will equal worldPosition
.
Remarks
Preserves Alignment and the current Position's LengthTypes.
Declaration
public bool TrySetWorldPosition(Vector3 worldPosition)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | worldPosition | The |
Returns
Type | Description |
---|---|
bool | false if |
See Also
TrySetLocalPosition(UnityEngine.Vector3)