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

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

1381. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 44%]

...le.log("parse error"); } private play(): void { console.log("1111111111"); if(++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton.play(this.index, false, true) } } ``` 具体效果大家可以在官网引擎事例中查看。https://layaair2.ldc2.layabox.com/demo2/?language=...

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

1382. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 43%]

...._atlasID=-1; /**@private */ this.scaleRate=1; Texture.__super.call(this); if (bitmap){ bitmap._addReference(); } this.setTo(bitmap,uv); } 2018-05-04 5 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Prajna 赞同来...

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

1383. 材质-物理基础渲染材质 [ 43%]

...= Laya.loader.getRes(envinfo); var camera = new Laya.Camera(0, 0.1, 1000); if (envinfoobj.ev != undefined) camera._shaderValues.setValue(Laya.BaseCamera.HDREXPOSURE, Math.pow(2, envinfoobj.ev)); else camera._shaderValues.setValue(Laya.BaseCamera.HDREXPOSURE, Math.pow(2, 0.0)); scene.addChild(camera)...

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

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

...灵 * @param name 需要查找的节点名 */ private findChild(sp,name){ if(sp.name==name) return sp; else return this._findChild(sp._children,name); } private _findChild(spArr,name){ var arr:Array = []; for(var i = 0;i (图 new)新版本骨骼挂点 ### 老版本骨骼挂点 #### (1) 在Unity...

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

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

...灵 * @param name 需要查找的节点名 */ private findChild(sp,name){ if(sp.name==name) return sp; else return this._findChild(sp._children,name); } private _findChild(spArr,name){ var arr:Array = []; for(var i = 0;i (图 new)新版本骨骼挂点 ### 老版本骨骼挂点 #### (1) 在Unity...

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

1386. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 43%]

...teVideo, [texture2D]); },true); } updateVideo(tempTexture:Laya.Texture2D){ if(this.htmlvideo.video.readyState === this.htmlvideo.video.HAVE_ENOUGH_DATA) { //更新视频纹理 tempTexture.loadImageSource(this.htmlvideo.video); } } } 如果使用上述代码遇到问题,在继续提交新问题。 ...

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

1387. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 43%]

...arse error"); } private function play(): void { console.log("1111111111"); if(++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton.play(this.index, false, true) } } ``` 具体效果大家可以在官网引擎事例中查看。https://layaair2.ldc2.layabox.com/demo2/?language=...

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

1388. Cannot read property 'toDefault' of undefined报错是什么原因 [ 43%]

... Laya.Physics.rayCast(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); if (this._outHitInfo.sprite3D.name === "tlj"){ isRotate = !isRotate; } // this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, state); // //绘出射线 // this.phasorSpriter3D.line(this.ray.origin.x, this.ray.origin.y, this.ray...

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

1389. 同一类型光源互斥的问题报告 [ 43%]

...图反射 material.albedo = new Laya.Vector4(0.8, 0.8, 0.8, 0); material.diffuseTexture = Laya.Texture2D.load("images/bg03.png"); box.meshRender.material = material; //平面 var plane = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(15, 15, 1, 1))); plane.transform.position = new Laya.V...

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

1390. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 43%]

....Pool.recover('Skeleton', mArmature); }   function play() { mCurrIndex++; if (mCurrIndex >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArmature.play(mCurrIndex, false);   } })();   报错信息: laya.core.js:18207 Uncaught TypeError: Cannot read property 'scaleX' of null     at Skeleton....

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