大约有 2 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0018 秒)
...显示一个图片,居中显示 sprite.loadImage("atlas/comp/image.png", null); sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 添加到舞台 Laya.stage.addChild(sprite); 3.2.2 set texture /** * 设置一个Texture实例,并显示此图片(如果之前有其他绘...
来源: Laya3.0_文档 发布时间: 20251010
...of Component) { let comp = sprite.getComponent(componentType); if (comp != null) { lists.push(comp); } for (var i = 0; i < sprite.numChildren; i++) { let child = sprite.getChildAt(i) as Sprite; this.findCompents(lists, child, componentType); } } //组件被激活后执行,此时所有节点和...
来源: Laya3.0_文档 发布时间: 20251010