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

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

3731. 用ts开发,从编辑模式发布后,代码模式里layaUI.max.all.ts会报错 [ 49%]

...' message: 'Cannot find name 'loadUI'. Did you mean the instance member 'this.loadUI'?' at: '16,13' source: 'ts' 2017-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 最好提供给...

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

3732. LayaNative2.0 UI移除舞台,再添加必然无法显示 [ 49%]

...; } else { _p.removeSelf(); _p2.removeSelf(); } c++; Laya.timer.once(2000, this, ShowHide); }   【native2.0中】stage上加几个平级container,然后再同一container上加两个ui,移除舞台后再加上必然无法显示 网页中是正常的   注意:直接加到舞台stage上能正...

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

3733. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 49%]

...(raidius, height)); //把圆锥形3D节点对象添加到3D场景节点下 this.newScene.addChild(cone); //设置随机位置 this.tmpVector.setValue(Math.random() * 6 - 2, 6, Math.random() * 6 - 2); cone.transform.position = this.tmpVector; //为圆锥形3D节点对象创建刚体碰撞器 let _rig...

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

3734. 如何动态添加Animator和加载AnimationClip并播放 [ 49%]

...yaScene.lh")) as Sprite3D;       layaScene.once(Event.HIERARCHY_LOADED, this, function():void{       var meshSprite:Sprite3D=layaScene.getChildAt(0) as Sprite3D;       var animator:Animator = meshSprite.addComponent(Animator) as Animator;       var clip:AnimationClip=AnimationClip.load("...

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

3735. 材质动画的使用(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 49%]

...eDimen/scene/materialScene/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); })); ```

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

3736. 与echarts显示的问题,HTMLDivElement [ 49%]

...,且设置了var为mydiv,然后在代码中 var myChart = echarts.init(this.mydiv);进行echarts的初始化时,报: [ts] Argument of type 'HTMLDivElement' is not assignable to parameter of type 'HTMLDivElement | HTMLCanvasElement'. Type 'HTMLDivElement' is not assignable to type 'HTMLCanvas...

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

3737. 引擎的text类中有没有直接读取Json文件的函数 [ 49%]

...Demo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("unpack.json"); var str:String=JSON.stringify(json); trace(str); } } } 2017-08-07 0 0 分享 微博 QZONE 微信 为什...

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

3738. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 49%]

...(550,400);             Laya.loader.load("walk.png",Handler.create(this,onLoaded));         }         private function onLoaded():void         {             var texture:Texture=Laya.loader.getRes("walk.png");             //计算好UV,创建新的texture...

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

3739. Laya2.2问题,有没有遇到的? [ 49%]

...le(); if (GameConfig.stat) Laya.Stat.show(); Laya.alertGlobalError = true; this.onConfigLoaded(); } onVersionLoaded() { } onConfigLoaded() { console.log(123131313213); } } new Main();  }());   错误信息: Uncaught TypeError: window.wx.getFileSystemManager is not a function     at window.wxMi...

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

3740. 文本-字数限制 [ 49%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1;...

来源: Laya_示例 发布时间: 20251223