大约有 2 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0020 秒)
... = true): boolean 参数说明: textureId:纹理的 ID (可从 texture.bitmap.id 获取) largeTextureIndex:指定从哪个大纹理移除(-1 表示从所有大纹理移除) event:是否触发 Event.CHANGE 事件(默认 true) //使用示例 const texture = Laya.loader.getRes("resources/hero.p...
来源: Laya3.0_文档 发布时间: 20260131
...(); Laya.stage.addChild(sprite); //缓存为静态图像 sprite.cacheAs = "bitmap" 3.4.5 设置遮罩mask 代码示例如下: let sprite = new Laya.Sprite(); Laya.stage.addChild(sprite); sprite.loadImage("atlas/comp/image.png", null); //创建遮罩 let mask = new Laya.Sprite(); sprite.addChild(ma...
来源: Laya3.0_文档 发布时间: 20251010