cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Cocos Creator 3.6.0 - plist is broken

Open arathore-gaming opened this issue 3 years ago • 1 comments

Cocos Creator version

3.6.0

System information

Windows 11

Issue description

I am using an atlas (.plist) and trying to change sprite frames on runtime based on diffrent conditions in a game. The name of atlas is clolliders and it has got multiple sprite frames like Left_2 , Left_2_active etc.

The issue is when I try to get the spriteAtlas via following code the name field of spriteFrames is wrong-

selfCollider.node.getComponent(Sprite).spriteAtlas

image

Frame names looks fine inside UI Editor - image

This was working fine in Cocos Creator version 3.5.x, following is the output of same code with v 3.5.2 image

Relevant error log output

No response

Steps to reproduce

Because of the change in name property the code which was working fine in 3.5.2 now doesn't works in 3.6.0

Actual result: name: "clolliders" Expected Result: name: <Should contain relevant name of sprite frame>

Minimal reproduction project

No response

arathore-gaming avatar Aug 19 '22 06:08 arathore-gaming

@jareguo Any update on this?

arathore-gaming avatar Sep 23 '22 07:09 arathore-gaming

@arathore-gaming

It's seems good in v3.7.0 , you can try in the new version.

image

yanOO1497 avatar Dec 06 '22 08:12 yanOO1497