Cocos Creator3.8 practical problems (1) cocos creator prefab cannot display content


Problem Description:

The cocos creator prefab cannot display the content, or only displays part of the content.


You can see this in the creator editor:

Insert image description here


When previewing, the content is not visible:

Insert image description here


**problem causes:**

The layer where the prefab node is located is default.

Insert image description here


Solution:

Change the layer where the prefab node is located to the layer of UI_2D to display it.

Insert image description here


After repair:

Insert image description here


Guess you like

Origin blog.csdn.net/lizhong2008/article/details/133271681