为什么

importf_decorator,Component,Node,Sprite,SpriteFrame,resources,instantiate,UITransform,SpriteAtlasfrom‘cc';
Consttccclass,property=_decorator
@ccclass(gameRoom")
export classgameRoom extends Component
@property({type:SpriteAtlas})
atlas:SpriteAtlas=null:
start(){
resources.load("images/All",SpriteAtlas,(err,atlas)=>{
if(err){
Console.log(err)
return
if(atlas)
if(atlas)
Console.1og(1);
this.atlas=atlas;
Constframe=this.atlas.getspriteFrame(1T')
if(frame){
console.1og(2)
constsprite=this.node.addComponent(Sprite)
Sprite.spriteFrame=frame:
!
CSDN@AI0120
images/All是我图集的路径,images在recourses文件下所放,然后打印1,2也能打印出来,这个1T是我图集的一个精灵,为什么图片显示不出来,我用的是cocos creator3.5.2版本