大约有 310 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0051 秒)
Laya_社区(209) Laya3.0_api(22) Laya2.0_文档(22) Laya3.0_文档(20) Laya_示例(16) Laya2.0_示例(15) laya_api(3) Laya2.0_api(3)
... 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 请问下loader如何强制加载一个文件,避免浏览器的缓存 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? FD 宏编译时 出现 试图访问该方法时失败 问题状态 最新活动: 20...
来源: Laya_社区 发布时间: 20190410
...ad 再play let dreamsSound:Laya.SoundChannel = null Laya.loader.load("res/dreams.mp3",Laya.Handler.create(this,function(){ dreamsSound = Laya.SoundManager.playMusic("res/dreams.mp3") })) let mainSound:Laya.SoundChannel = nul...
来源: Laya_社区 发布时间: 20190716
...ayaAir引擎)TS》的视频教程是否有配到代码下载? 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2018-11-07 17:54 浏览: 2171 关注: 1 人 coder • 2018-11-08 09:52 谢谢
来源: Laya_社区 发布时间: 20181107
...t imageUrl = "resources/res/test.bin"; // 加载二进制图片文件 Laya.loader.fetch(imageUrl, "arraybuffer").then((arrayBuffer: ArrayBuffer) => { // 直接发送加载后的 ArrayBuffer 数据 this.socket.send(arrayBuffer); console.log("发送 ArrayBuffer 数据", arrayBuffer); }); } private ...
来源: Laya3.0_文档 发布时间: 20251010
...理时就会报错,需要使用异步的方式来处理 Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res)=>{ this.img.texture = res; })); 这样一来,不同的平台就需要使用不同的编程方式就大大降低了易用性,...
来源: Laya_社区 发布时间: 20220919
....timer.loop(10,this,draw); } private function draw():void { texture = Laya.loader.getRes("comp/lhjicon_5.png"); var temp:Texture = Texture.createFromTexture(texture,0,0,texture.sourceWidth/2,texture.height/2); IconSpr.graphics.drawTexture(temp,0,0,temp.sourceWidth,temp.height); temp.destro...
来源: Laya_社区 发布时间: 20180118
... 微信 155*****583 赞同来自: 还有分离模式下, this.createView(Loader.getRes("../test/TestPage.json"))只能放在对应的 ui 类里面加吗,这样每次导出不就覆盖了,很不方便啊 2018-01-30 0 1 分享 微博 QZONE 微信 HennoLuo 赞同来自: @xcling的问题: 1. 在...
来源: Laya_社区 发布时间: 20161202
...n: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let...
来源: Laya_社区 发布时间: 20170511
...ned 用了ByteArray的zlib.min.js后报错 runtime运行报错! 请问下loader如何强制加载一个文件,避免浏览器的缓存 本地调试加载本地图片都报错 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? unity到导出场景加载时抛异常,...
来源: Laya_社区 发布时间: 20170118
...{ // this.tiledMap = new TiledMap(); // // Laya.loader.create(["res/tiledMap/t1.json", "res/tiledMap/2201001.png"], Laya.Handler.create(this, () => // // { // this.tiledMap.createMap("res/tiledMap/t1.json", new Rectangle(0, 0, Laya....
来源: Laya_社区 发布时间: 20201230