大约有 434 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0042 秒)
Laya_社区(297) Laya2.0_文档(56) Laya_示例(23) Laya3.0_文档(22) Laya3.0_api(14) Laya2.0_示例(10) Laya2.0_api(8) laya_api(4)
... Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1.5)); camera.addComponent(CameraMoveScript); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); layaMonkey.tra...
来源: Laya_示例 发布时间: 20241117
...aya.Browser.width / 2, Laya.Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play) this.play(); } private onError(): void{ console.log("parse error"); } private play(): void { console.log("1111111111"); if(++this.index >= this.skeleton.getAnim...
来源: Laya2.0_文档 发布时间: 20210715
..., 0); //设置灯光高光色 // light.specularColor = new Laya.Vector3(0, 0.5, 0.5); //添加灯光投影 light.shadow=true; //产生投影的范围(如过小将不会产生投影) light.shadowDistance=45; //生成阴影贴图数量 light.shadowPSSMCount = 1; //模糊等级,越大越高,效果...
来源: Laya_社区 发布时间: 20180307
...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_示例 发布时间: 20241117
...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_示例 发布时间: 20241117
...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_示例 发布时间: 20241117