• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0008 秒)

1. Sprite-切换纹理 [ 100%]

...Url: string = (this.flag = !this.flag) ? this.texture1 : this.texture2; // 更换纹理 this.ape.graphics.clear(); var texture: Texture = Laya.loader.getRes(textureUrl); this.ape.graphics.drawTexture(texture, 0, 0); // 设置交互区域 this.ape.size(texture.width, texture.height); } } } new laya.S...

来源: Laya2.0_示例 发布时间: 20240930