大约有 486 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
Laya_社区(338) Laya2.0_文档(56) Laya3.0_文档(33) Laya_示例(23) Laya3.0_api(14) Laya2.0_示例(10) Laya2.0_api(8) laya_api(4)
...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
...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
...mat.lightInstensity = 2.0; // 附加光照强度, eg: 平行光照强度 0.5, CmShowPBRMatrial 附加光照强度 1.5, 材质实际光照强度 0.5 * 1.5 = 0.75 ```
来源: Laya2.0_文档 发布时间: 20210715
...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
...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
...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
...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
... 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
...rY=0 能否添加引擎的默认设置使创建时默认为anchorX=anchorY=0.5 2019-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...
来源: Laya_社区 发布时间: 20190808
...用须知-版本更新-问题解答(最新版本:1.7.16) LayaTree v1.0.5版本更新(2021.11.17) 关于微信7.0.3版本之后的版本,微信小游戏 Android 端调整 “在屏 Canvas” 的放缩策略 分享:打地鼠 AS、JS、TS版本 Demo! 分享:适配LayaAir版本的PureM...
来源: Laya_社区 发布时间: 20220613