UITransform Component Reference
Click the Add Component button at the bottom of the Inspector panel and select UITransform from UI to add the UITransform component to the node.
Please refer to the UITransform API.
Deprecation of the priority property
Description of the deprecated priority
property and the recommended setSiblingIndex()
method:
The priority
property on the UITransform component was deprecated in v3.1 due to a lack of clarity and naming conflicts with other properties in the engine. The property was originally designed to provide a shortcut for the user to sort the node tree, but has no other use in itself and is not related to the meaning of “priority”, and actually still adjusts the rendering order by changing the order of the node tree.
Considering the need for quick sorting of nodes, a more convenient and quick interface for users to sort nodes will be provided in future versions.