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

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

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

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

352. 子容器的事件问题 [ 62%]

...0); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); let vhvt: ViewHeadViewTest = new ViewHeadViewTest(); //testUI.addChildAt(vhvt,...

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

353. 为什么List中的tweenTo问题 [ 62%]

为什么List中的tweenTo问题 为什么在List中的selectHandler中调用List的tweenTo函数没有任何作用,界面会直接变化到选中的那个项,而没有对应的动画,是不是还有什么参数要设置? 2017-10-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

354. Laya.Video内存泄漏问题 [ 62%]

...频'; Laya.loader.load([{url: video_url, type: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_url = URL.createObjectURL(video_file); var video = new Laya.Video(...

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

355. TiledMap中的gridWidth|(块的宽度)是哪一部分啊? [ 62%]

...-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height),Handler.create(this,onComplete)); } private function onComplete():void { // TODO Auto Generated method stub trace(tiledMap.tileWidth,tiledMap.tileHeight); }   2016-07-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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

356. 游戏系怎么把一些共用的功能独立出来 [ 62%]

..., type: Loader.ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false)); 3、注入JSvar js:any = Laya.loader.getRes("res/atlas/choujiang.js"); Browser.window.eval(js); 4、运行JS var ChouJiang = Browser.win...

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

357. Cannot read property 'rayCast' of undefined [ 62%]

...ite3D.load("res/scene/LayaScene_webgl_sky/Conventional/webgl_sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameL...

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

358. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 62%]

...);   //加载精灵 Sprite3D.load("LayaScene_cu_demo/Conventional/Cu.lh", Handler.create(null, function(sp:Sprite3D):void { cu = scene.addChild(sp) as Sprite3D; cu.transform.rotate(new Vector3(0, -90, 0), true, false); _rb = cu.getComponent(Rigidbody3D) as Rigidbody3D; }));   //施加作用力或...

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

359. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 62%]

...也不影响后续流程 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); } onVersionLoaded(): void { //激活大小图映射,加载小图的时候,如果发现小图在大图合集里面,则优先加载大图...

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

360. 物理刚体(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 62%]

...`typescript //加载模型 Laya.Sprite3D.load("Conventional/shoot.lh",Laya.Handler.create(this,function(sp){ //获取到Meshsprite3d var cube = scene.addChild(sp.getChildAt(0); //获取刚体 var cubeRigid = cube.getComponent(Laya.Rigidbody3D); })); ```

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