大约有 139 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
...以在Laya.MiniAdpter.getFileList()查找到对应缓存 但使用Laya.loader.load预加载图片与atlas时,图片可以正常从usr/layaairGame/中读取 atlas文件依旧从远程读取 如何使atlas从本地路径读取? (虽然atlas文件尺寸不大,但这样不能离线运行...
来源: Laya_社区 发布时间: 20180825
.../设置纹理 this._trail2D.texture = Laya.Texture2D.whiteTexture; // Laya.loader.load("此处填写纹理的路径").then((res) => { // this._trail2D.texture = res; // }); //设置线段颜色 this._trail2D.color = new Laya.Color(1, 1, 1, 1); } //控制物体向右移动 onUpdate(): void { this....
来源: Laya3.0_文档 发布时间: 20251010
...不能继续播放 打地鼠的Laya1.0想用2.0写出来总是出错 Laya.loader.create 进度回调函数执行两次 麻烦帮看一下这种遮罩bar的进度条设了遮罩不起作用 关于环形进度条,进度不能重置问题 官方提供的进度条示例 只能设置progress.png的九...
来源: Laya_社区 发布时间: 20180615
...: // 程序入口 class GameMain{ constructor(){ var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var ProtoBuf = Browser.window.protobuf; Laya.init(550, 400); //加载协议...
来源: Laya_社区 发布时间: 20170216
...渲染效果 alpha遮罩 用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); -----...
来源: Laya_社区 发布时间: 20170606
...是从网上下载吗,有机会控制缓存的加载吗 2.lh或者ls在loader.create的时候就会把资源加载到显存里面,如果场景上的物件、特效比较多的话,利用lh一遍加载一遍释放,显然很慢,有什么缓解方案吗 3.如果是时常会出现特效,但...
来源: Laya_社区 发布时间: 20180814
...错: node._setParent is not a function var role3D: Laya.Sprite3D = Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D); //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play(); chrome 调试: addChi...
来源: Laya_社区 发布时间: 20191203
...72:13) at http://127.0.0.1:53462/game/code.js:97630:17 at Laya.loader.load.Handler.create (http://127.0.0.1:53462/game/code.js:102231:13) at Handler.__proto.runWith (http://127.0.0.1:53462/game/code.js:711:59) 查看了应该是微信自带的浏览器内核不支持Function.app...
来源: Laya_社区 发布时间: 20180302
... Laya.init(1136, 640,WebGL); Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet)); } private var imag:Image; private function onComplet():void ...
来源: Laya_社区 发布时间: 20170510
...init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr...
来源: Laya_社区 发布时间: 20180302