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

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

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

...eton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play) this.play(); } private function onError(): void{ trace("parse error"); } private function play(): void { console.log("1111111111"); if(++this.index >= this.skeleton....

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

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

...y, 1);     mArmature.x = mStartX; mArmature.y = mStartY; mArmature.scale(0.5, 0.5); mArmature.on(Event.STOPPED, this, completeHandler); Laya.stage.addChild(mArmature);   play(); }); }   function completeHandler() { mArmature.stop();         mArmature.removeSelf();         mArmature.remov...

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

183. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 63%]

...mat.lightInstensity = 2.0; // 附加光照强度, eg: 平行光照强度 0.5, CmShowPBRMatrial 附加光照强度 1.5, 材质实际光照强度 0.5 * 1.5 = 0.75 ```

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

184. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 62%]

...er, y3: number): number[] { const t2 = t * t; const t3 = t2 * t; const x = 0.5 * ((2 * x1) + (-x0 + x2) * t + (2*x0 - 5*x1 + 4*x2 - x3) * t2 + (-x0 + 3*x1 - 3*x2 + x3) * t3); const y = 0.5 * ((2 * y1) + (-y0 + y2) * t + (2*y0 - 5*y1 + 4*y2 - y3) * t2 + (-y0 + 3*y1 - 3*y2 + y3) * t3); return [x, y]; ...

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

185. 骨骼动画-换装 [ 62%]

...e.addChild(mArmature); mArmature.pos(mStartX, mStartY); // mArmature.scale(0.5, 0.5); mArmature.on(Event.STOPPED, this, this.completeHandler); this.play(); this.changeSkin(); Laya.timer.loop(1000, this, this.changeSkin); } changeSkin() { mCurrSkinIndex++; let skinLength = mSkinList.length; if (mCurr...

来源: Laya2.0_示例 发布时间: 20251130

186. 高级应用-实时阴影 [ 62%]

...fuse.lmat"); staticLayaMonkey.transform.position = new Laya.Vector3(0, 0, -0.5); staticLayaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); staticLayaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //产生阴影 staticLayaMonkey.meshRender.castShadow = tr...

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

187. 自定义shader-边缘光照shader [ 62%]

...edMaterials = baseMaterials; dude.transform.position = new Laya.Vector3(0, 0.5, 0); }); var earth = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.5, 128, 128))); var customMaterial = new CustomMaterial(); customMaterial.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/texture...

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

188. 3D网格添加刚体后设置欧拉角出现位置错误 [ 62%]

... this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(0.5)));         sphere.meshRenderer.material = this.mat1;         let rigidBody2 = sphere.addComponent(Laya.Rigidbody3D);         let sphereShape = new Laya.SphereColliderShape(0.5);         rigidBody2.collide...

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

189. 引擎默认anchor设置 [ 62%]

...rY=0 能否添加引擎的默认设置使创建时默认为anchorX=anchorY=0.5 2019-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

190. 版本管理问题 [ 62%]

...用须知-版本更新-问题解答(最新版本:1.7.16) LayaTree v1.0.5版本更新(2021.11.17) 关于微信7.0.3版本之后的版本,微信小游戏 Android 端调整 “在屏 Canvas” 的放缩策略 分享:打地鼠 AS、JS、TS版本 Demo! 分享:适配LayaAir版本的PureM...

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