大约有 3,244 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0073 秒)
Laya_社区(2446) Laya3.0_api(242) Laya2.0_文档(138) Laya2.0_api(136) laya_api(135) Laya3.0_文档(77) Laya_示例(52) Laya2.0_示例(18)
...(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey = Laya.Loader.getRes("res/threeDimen/skinModel/LayaMo...
来源: Laya2.0_文档 发布时间: 20210714
....Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //实例PBR材质 var pbrMat = new Laya.PBRStandardMaterial(); //开启该材质的反射 pbrMat.enableReflection = true; //设置材质的金属度,尽量高点,反射效果更明显 pbrMat.metallic =...
来源: Laya2.0_文档 发布时间: 20210715
...Vector3(0, 45, -60)); camera.transform.rotate(new Laya.Vector3(0, 180, 0), false, false); //相机视角控制组件(脚本) camera.addComponent(CameraMoveScript); //添加光照 var directionLight = _scene.addChild(new Laya.DirectionLight()); //光照颜色 directionLight.color = new Laya.Vector3(1...
来源: Laya2.0_文档 发布时间: 20210715
... EventDispatcher lookAt(target:Vector3, up:Vector3, isLocal:Boolean = false):void 观察目标位置。 Transform3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):...
来源: Laya2.0_api 发布时间: 20190513
...x >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArmature.play(mCurrIndex,false); } function onEvent(e) { var tEventData = e; Laya.stage.addChild(mLabelSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "...
来源: Laya_示例 发布时间: 20251209
...,10,10) a.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); scene.addChild(a); 2020-01-08 0 1 分享 微博 QZONE 微信 139*****427 赞同来自: 这种图一的就是可以直接取节点克隆使用!图二的就是不可以直接...
来源: Laya_社区 发布时间: 20200107
...tion = null, complete:Handler = null, delay:int = 0, coverBefore:Boolean = false):Tween { return _create(target, props, duration, ease, complete, delay, coverBefore, true, false, true); } 2018-06-21 0 6 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20180621
...音键让音频自动跟随设备静音。需要将useAudioMusic设置为false。 ```javascript SoundManager.useAudioMusic=false; ``` ### 五、失去焦点的处理 如果不是手机全屏游戏,或者在浏览器里交互。有可能会导致切出游戏后,失去焦点,而失去焦点后...
来源: Laya2.0_文档 发布时间: 20210715
...Sprite3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 EventDispatcher on...
来源: laya_api 发布时间: 20170929
...abc</div> * style支持的属性如下: * italic:true|false; 是否是斜体 * bold:true|false; 是否是粗体 * letter-spacing:10px; 字间距 ...
来源: Laya_社区 发布时间: 20190227