From 188f85de85f909334f4948b3d21e55865ea4e972 Mon Sep 17 00:00:00 2001 From: yhchen Date: Fri, 9 Aug 2024 17:58:21 +0800 Subject: [PATCH] fix: fix DisplayObject._renderingOrder differentiate with graphics.renderingOrder --- Assets/Scripts/Core/DisplayObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Core/DisplayObject.cs b/Assets/Scripts/Core/DisplayObject.cs index 5e15c61d..24d1b64a 100644 --- a/Assets/Scripts/Core/DisplayObject.cs +++ b/Assets/Scripts/Core/DisplayObject.cs @@ -885,7 +885,7 @@ virtual public void SetRenderingOrder(UpdateContext context, bool inBatch) return; } - _renderingOrder = context.renderingOrder + 1; + _renderingOrder = context.renderingOrder; if (graphics != null) graphics.SetRenderingOrder(context, inBatch); else