cocos / cocos/cocos-engine

在沒勾選 2D Rendering Sorting 的情況下,關閉掛載了 Sorting2D 的物件運行遊戲會出現錯誤

Open
#19,087 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Needs Triage
Dominant language
C++
Stars
9.8k
Forks
2.1k
Avg merge
12h 42m
Merged PRs (30d)
13

Description

Cocos Creator version

3.8.7

System information

Windows11

Issue description

無編寫任何代碼,掛載 Sorting2D 組件並將物件 disable 於場景後會報錯。

Image
Relevant error log output
Image
Steps to reproduce
  • 建立空場景
  • 關閉 project setting 中的 2D Rendering Sorting 設定
  • 建立新的 Node 並掛載 Sorting2D 組件
  • disable Node
  • 運行遊戲,出現錯誤
Minimal reproduction project

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Cocos Creator 3.8.7 with an empty scene, the 2D Rendering Sorting project setting disabled, and a disabled node carrying Sorting2D. Start by examining the Sorting2D component and its handling of disabled nodes; done means running the scene no longer produces the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.