FREE TRIAL

|

☀
☾

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 transform.position to convert to a layout position.

Returns
Type Description
bool

false if gameObject.activeInHierarchy == false, since layout properties cannot be calculated in that state, otherwise returns true.

See Also
TrySetLocalPosition(UnityEngine.Vector3)
☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC