大约有 828 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
Laya_社区(538) Laya2.0_文档(154) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(23) Laya3.0_文档(17) laya_api(1) Laya2.0_api(1)
...sionObject undefined 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 2.0 beta4 ts 含demo 在纵向滑动 list 的 renderHandler中给item中的Label组件赋值 字体被释放 ios 背景音乐需要手动点一下屏幕才能播放 求一个没问...
来源: Laya_社区 发布时间: 20191109
..."./LayaScene_111/Conventional/smoke.lh"]; Laya.loader.create(res3D, Laya.Handler.create(this, this.createBuild));这句子去获取资源,然后用 Laya.Loader.getRes("./Prefab/Conventional/NewBuilds.lh");方法去读取相应的文件,可是发现资源加载还是很慢,好久才进入到c...
来源: Laya_社区 发布时间: 20190702
...件)编程模式 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2018-01-30 12:15 浏览: 1114 关注: 2 人 helegame • 2018-01-30 12:44 我现在需要在 修改skin的时候 做某种操作 怎么做? qian • 2018...
来源: Laya_社区 发布时间: 20180130
...着走的函数 Tween.to(sprite,{x:Laya.stage.mouseX,y:sprite.y,update:new Handler(this,onWalk(hDir)),complete:Handler.create(this,function(){ Tween.to(sprite,{x:sprite.x,y:Laya.stage.mouseY,update:new Handler(this,onWalk(vDir))}) ; })}) ; console.log(sprite.x) ; console.log(sprite.y) ; console.log(...
来源: Laya_社区 发布时间: 20180331
...地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` (图12)
来源: Laya2.0_文档 发布时间: 20210714
...ya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMo...
来源: Laya2.0_文档 发布时间: 20210715
...下有没有错误 读取代码: Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void { //添加3D场景 var scene:Scene = new Scene(); Laya....
来源: Laya_社区 发布时间: 20180116
...Laya.Scene3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res...
来源: Laya2.0_文档 发布时间: 20210715
...Laya.Scene3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res...
来源: Laya2.0_文档 发布时间: 20210714
...: ResourceVersion.enable( "version.json?" + Math.random(), Handler.create(this, this.onVersonLoaded)); 然而发布的游戏启动后发现加载失败,查看日志发现加载的URL拼得不对: 它加载使用的路径是一个奇怪的: http://localhost/h5/res/atlas/ui/s...
来源: Laya_社区 发布时间: 20180115