FREE TRIAL

|

☀
☾

UIBlock.TrySetLocalPosition

TrySetLocalPosition(Vector3)

Move this UIBlock to the given Transform localPosition and update Position accordingly such that when the Nova Engine recalculates the modified layout properties, the resulting transform.localPosition will equal localPosition.

Remarks

Preserves Alignment and the current Position's LengthTypes.

Declaration
public bool TrySetLocalPosition(Vector3 localPosition)
Parameters
Type Name Description
Vector3 localPosition

The transform.localPosition 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
TrySetWorldPosition(UnityEngine.Vector3)
☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC