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

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

3741. 如何动态添加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

3742. 材质动画的使用(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

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

3744. 引擎的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

3745. 如何实现类似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

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

3747. laya.d3.core.light.PointLight_API3.0 [ 49%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(n...

来源: Laya3.0_api 发布时间: 20231115

3748. 文本-字数限制 [ 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_示例 发布时间: 20260303

3749. 微信web页面贴图无法加载 [ 49%]

...WebGL: too many errors, no more errors will be reported to the console for this context. 但是在同一台手机上的qq浏览器、chrome上都是好的 这个是不是因为贴图太大了内存不够?有什么好的处理方法,或者有办法禁用Mipmap吗?   2018-03-30 添加评论 免...

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

3750. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 49%]

..."], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0);  Laya.stage.addChild(s); } 新建一个工程 這样写打包之后会白...

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