Layer


Layer settings. Utage layers, as defined here, are different from Unity Layers and LayerMasks. It is a type of group configuration for graphical images that specifies the position and order for displaying the images. Only one character can be displayed per layer, so if you want to display multiple characters simultaneously, you will need to have multiple layers.

Sample

Reference

Data item name Description Handling process when empty
LayerName Layer name Input required
Type Layer type. Enter one of the following depending on how you want to use it.
Bg: background display
Sprite: sprite display
Character: character
Input required
X Layer’s central coordinate X If empty, it is set to 0.
Y Layer’s central coordinate Y If empty, it is set to 0.
Order Drawing order. Enter a number between 0 and 1,000. Input required

Z Value

The Z value basically increases and decreases automatically based on the Order. When using 3D objects and the like, the relationship between the images in front and behind are decided based on the Z value rather than the drawing order. However, the Z value and the Order need to be linked to each other so as to maintain consistency with the drawing order of other 2D objects. Therefore, the system changes the Z value automatically based on the Order. You can change the degree of influence between the Order and the Z value by adjusting the value of “Sort Order To Z Unit” on the GraphicManager.

The formula is:
Z=-Order/SortOrderToZUnit;
The lower the Order, the further back the image is displayed, and that is why it has a negative value. If using the default value of 100, for every 100 units of the Order value, the Z value would change by -1. If set to 1, for every 1 unit of the Order value, the Z value would change by -1.