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

大约有 828 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)

361. 手动实例一次本组件可定位错误 [ 65%]

...sionObject undefined 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 2.0 beta4 ts 含demo 在纵向滑动 list 的 renderHandler中给item中的Label组件赋值 字体被释放 ios 背景音乐需要手动点一下屏幕才能播放 求一个没问...

来源: Laya_社区 发布时间: 20191109

362. 微信小游戏,动态加载资源很慢 [ 65%]

..."./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

363. 自定义组件 [ 65%]

...件)编程模式 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2018-01-30 12:15 浏览: 1114 关注: 2 人 helegame • 2018-01-30 12:44 我现在需要在 修改skin的时候 做某种操作 怎么做? qian • 2018...

来源: Laya_社区 发布时间: 20180130

364. Tween.to 执行失败 [ 65%]

...着走的函数 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

365. Effect材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 65%]

...地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图12)

来源: Laya2.0_文档 发布时间: 20210714

366. Sprite3D的克隆(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 65%]

...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

367. unity里导出的骨骼动画无法读取 [ 65%]

...下有没有错误   读取代码:    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

368. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 65%]

...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

369. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 65%]

...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

370. 最新的ResourceVersion发布以后加载的url不正确 [ 65%]

...: ResourceVersion.enable(     "version.json?" + Math.random(),     Handler.create(this, this.onVersonLoaded));   然而发布的游戏启动后发现加载失败,查看日志发现加载的URL拼得不对:   它加载使用的路径是一个奇怪的: http://localhost/h5/res/atlas/ui/s...

来源: Laya_社区 发布时间: 20180115