大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0086 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...r CharSegment=(function(){ function CharSegment(){ this._sourceStr=null; } __class(CharSegment,'laya.webgl.text.CharSegment'); var __proto=CharSegment.prototype; Laya.imps(__proto,{"laya.webgl.text.ICharSegment":true}) __proto.textToS...
来源: Laya_社区 发布时间: 20180517
...存 用了cacheAs 不起作用 zhengjiajia • 2017-09-13 20:05 @Monica: this.itemSpr.cacheAs = 'normal'; this.itemSpr.cacheAsBitmap = false; 为何这样设置 在报错的时候 发现这两个属性完全不正确呢 zhengjiajia • 2017-09-13 20:09 @Monica:this.itemSpr = new Laya.Sprite; this.it...
来源: Laya_社区 发布时间: 20170913
用Loader加载完atlas,然后使用animation播放问题 this._load = new Laya.Loader() this._load.on(Laya.Event.ERROR, this, this.onError); this._load.on(Laya.Event.COMPLETE, this, this.loadComplete); this._load.load(this._data.url, Laya.Loader.ATLAS, true); 加载完成后 this._ani = new Animat...
来源: Laya_社区 发布时间: 20171212
...ne: the .lh file root type must be Scene,please use other function to load this file."); } } var innerResouMap=data[1]; Utils3D._createNodeByJson(this,json,this,innerResouMap); this.event("hierarchyloaded",[this]); this.__loaded=true; } 打了一...
来源: Laya_社区 发布时间: 20180101
...ext:Laya.RenderContext,x:number,y:number):void{ if(this.shader._program) { let u_lightTime = gl.getUniformLocation(this.shader._program, "u_lightTime") gl.uniform1f(u_lightTime, this.timer...
来源: Laya_社区 发布时间: 20181121
...kinModel/Zombie/old/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { zombie.transform.rotation = new Laya.Quaternion(-0.7071068, 0, 0, -0.7071068); zombie.transform.position = new Laya.Vector3(0.3, 0, 0); addSkinComponent(zombie); loadUI(); }); var skinAniUrl = [ "../../res...
来源: Laya_示例 发布时间: 20250224
...物体代码 onGround():any{ let bc:Laya.BoxColliderShape = this.rigidbody.colliderShape as Laya.BoxColliderShape let y:number = this.transform.position.y-bc.sizeY/2 - 0.05 let vec3:Laya.Vector3 = new Laya.Vector3(this.transform.position.x,y,this.transform.posi...
来源: Laya_社区 发布时间: 20190905
...mo/Conventional/scene.ls")) as Laya.Scene3D; //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere") as Laya.MeshSprite3D; //获取球型精灵自带的BlinnPhong材质 this.billinMaterial = this.sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或...
来源: Laya2.0_文档 发布时间: 20210715
...部XR)StageX不对 //注册事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_OUT, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseEvent); //鼠标yi'...
来源: Laya_社区 发布时间: 20230619
.../点击最先出来的按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面一层的按钮,会隐藏该层,同时显示上一层 this.btnChange.on(Laya.Event.CLICK, this, this.change, [1]); //初始时默认上面一层不...
来源: Laya_社区 发布时间: 20180810