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

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

561. 关于Tween类多个对象同时缓动的时候过一段时间会不同步 [ 64%]

...; obj["x"]=this.x; obj["y"]=this.y+num; Tween.to(this,obj,500,null,Handler.create(this,startAnimated)) } } 开始是同步的 时间长了动画会出现很大的误差 下面是不同步的时候和开始同步的时候的图片   附件 : --> 2018-05-24 添加评论 免费帖 --> 分享 微博 QZ...

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

562. laya.resource.NativeRenderTexture2D_API3.0 [ 63%]

...W cpuMemory currentActive gpuMemory Methods _addReference _clearReference _create _end _removeReference _setCPUMemory _setCreateURL _setGPUMemory _start clear destroy end event getData getIsReady gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recycle restore start dest...

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

563. Swift中接入Native,执行完drawInRect后不执行update了! [ 63%]

...10:38.252868+0800 SwiftLayaNative[98971:4069811] iOS OpenGL ES 3.0 context created 2019-05-10 17:10:38.253489+0800 SwiftLayaNative[98971:4069811] 当前应用软件版本:1.0 2019-05-10 17:10:38.253591+0800 SwiftLayaNative[98971:4069811] 当前应用Local版本号码:1 2019-05-10 17:10:38.253705+0...

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

564. Maximum call stack size exceeded [ 63%]

...)     at Function.getCompInstance (laya.core.js:21214)     at Function.createComp (laya.core.js:21081)     at Function.createComp (laya.core.js:21111)     at Function.createByData (laya.core.js:21034)     at GameMain.createView (laya.core.js:23764)   模仿示例代码   才开始就出...

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

565. layaAir TS项目如何引用protoBuf库? [ 63%]

...ge = root.lookup("awesomepackage.AwesomeMessage");             // Create a new message  创建一条协议内容             var message = AwesomeMessage.create({                 awesomeField: "AwesomeString"             });             // Verify the ...

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

566. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 63%]

...ite3D(mesh); //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("LayaScene_01/Assets/model/loveScene_jianzhu.lm",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void { //创建预加载的模型网格 var mesh:Laya.Mesh = Laya...

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

567. discard property,please use transform's property instead [ 63%]

...能         directionLight.shadowPCFType = 3;         Laya.loader.create([             "res/plane.lh",             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoop(1, n...

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

568. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 63%]

...#232628"; roleAni = new Animation(); Laya.loader.load(AniConfPath, Handler.create(this, onLoaded), null, Loader.ATLAS); } private function onLoaded(_e:*=null):void { Animation.createFrames(aniUrls("die",6),"dizziness"); roleAni.play(0,true,"dizziness"); Laya.stage.addChild(roleAni); } /** * 创建...

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

569. TypeError: Cannot read property 'length' of null [ 63%]

...ab,b场景也包含预制体hero.prefab 在a场景通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)创建对象,同时给对象设置位置,成功 跳转到b场景后,通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)获取这个对象时,获取成...

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

570. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 63%]

...lob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); ``` 上面这个方法是...

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