mirror of
				https://gitee.com/nomat/lcc-ui-sorting-group-demo.git
				synced 2025-11-04 06:25:25 +00:00 
			
		
		
		
	文档修改
This commit is contained in:
		@@ -85,6 +85,7 @@ export const ORDER_IN_LAYER_MAX = 100000;
 | 
			
		||||
4. 在需要排序的UI节点上,添加`SortingGroup`组件,并设置排序层和排序值,其配置会应用于当前节点和子孙节点上的UI渲染器;  
 | 
			
		||||
 | 
			
		||||
    UI渲染器的优先级以当前节点或者最近的祖先节点上的`SortingGroup`组件配置为准,如果没有则默认为`0`。
 | 
			
		||||
    并且优化操作只针对排序节点和其子节点,其他节点仍然使用节点树遍历。
 | 
			
		||||
 | 
			
		||||
    和Unity不同的是`Order In Layer`不必是整数,这里可以使用小数。
 | 
			
		||||
不同`Sorting Layer`的情况下,`Sorting Layer`枚举越小越先渲染;相同`Sorting Layer`的情况下,`Order In Layer`的值越小越先渲染。
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user