大约有 3,176 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0078 秒)
Laya_社区(2392) Laya3.0_api(242) Laya2.0_文档(138) Laya2.0_api(136) laya_api(135) Laya3.0_文档(63) Laya_示例(52) Laya2.0_示例(18)
...) { this.roleAni.interval = 100; //循环播放动画 this.roleAni.play(0, false, "atk"); //this.roleAni.play(0,true,"fire"); //this.timeLine.addLabel("turnRight",0).to( this.roleAni.play(0, false, "atk")); } /** * 创建一组动画的url数组(美术资源地址数组) * aniName 动作的名...
来源: Laya_社区 发布时间: 20171228
...e: number) { return this.split(this.padding(charCode.toString(16), 8, "0", false), 2).reverse().join(""); } range(...args: number[]) { const start: number = args.length === 1 ? 0 : args[0]; const end: number = args.length === 2 ? args[1] : args[0] - 1; return Array.from(Array(end - start + 1).keys()...
来源: Laya_社区 发布时间: 20190321
... _children : Vector.<OctreeNode>OctreeNode debugMode : Boolean = false[static] 是否开启四/八叉树调试模式。 OctreeNode exactBox : BoundBoxOctreeNode relaxBox : BoundBoxOctreeNodePublic Methods MethodDefined By OctreeNode(scene:Scene, currentDepth:int)OctreeNode ad...
来源: laya_api 发布时间: 20170929
...3d; parent.addChild(box); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.localPosition = new Laya.Vector3((i-5)*boxSize*1.1,0,j*boxSize*1.1-1); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); material.albedo...
来源: Laya_社区 发布时间: 20180117
....Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Laya.Handler.create(null, function(tex) { //实例PBR材质 var pbrMat = new Laya.PBRStandardMaterial(); //开启该材质的反射 pbrMa...
来源: Laya2.0_文档 发布时间: 20210715
...hics Defined in laya/ui/Button.ts:212 _ownGraphics _ownGraphics: boolean = false Implementation of ISelect._ownGraphics Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Implementation of ISelect._scene Inherited from Node._scene Defined in laya/display/Node....
来源: Laya3.0_api 发布时间: 20231115
...(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