大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...nimations"]; if (aniData && aniData[0]){ var data=aniData[0]; this._setUp({},data); if (data.nodes && data.nodes[0]){ this._aniKeys=data.nodes[0].keys; } } } });
来源: Laya_社区 发布时间: 20181019
...; Laya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 50; var boxMesh = Laya.PrimitiveMesh.createBox(0.02, 0.02, 0.02); var boxMat = new Laya.BlinnPhongMater...
来源: Laya_社区 发布时间: 20191112
Laya.Handler.create和new Laya.Handler有啥区别 this.sList.mouseHandler = Laya.Handler.create(this, this.onMouse);//鼠标响应事件 this.sList.mouseHandler = new Laya.Handler(this, this.onMouse) ; // 鼠标事件响应. 2017-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20170425
...Ease.backIn(100,100,100,100); Tween.to(sp,{x:400},1000,ease,Handler.create(this,onTween)); 2017-01-05 0 0 分享 微博 QZONE 微信 shaotianhk 赞同来自: var ease:*=Ease.backIn(100,100,100,100); 这句是什么鬼,放在js里直接报错 2018-04-02 0 0 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20170105
...同来自: function TestUI() { var Event = laya.events.Event; TestUI.super(this); this.ani1.play(15);//play的第一个参数是从第几帧开始播放 Laya.stage.on(Laya.Event.CLICK,this,onClick); } Laya.class(TestUI, "TestUI", TestPageUI); function onClick() { this.ani1.stop();//停止播放 this...
来源: Laya_社区 发布时间: 20170526
前述问题this.sp3Role.transform.position无效 您好,之前这个帖子(http://ask.layabox.com/question/50395)你们回复的this.sp3Role.transform.position这个方法只让主角移动和camera.transform.position相机跟随无效,因为主角无法移动,camara还没办法尝试,...
来源: Laya_社区 发布时间: 20220622
...new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, this, cb_onSuccess); req.on(laya.events.Event.ERROR, this, cb_onFail); req.send(url); } // 下载jpg图片成功后,显示在舞台上,response为 bmp图片二进制 function ...
来源: Laya_社区 发布时间: 20170103
...贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``` (图4) ##### 法线贴图 **Normal maps(...
来源: Laya2.0_文档 发布时间: 20210714
...e2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D....
来源: Laya_社区 发布时间: 20180313
...lters.GlowFilter("#00CCFF", 10, 0, 0); //设置滤镜集合为发光滤镜 this.cutLayer.filters = [glowFilter]; 测试了一下 最新的引擎版本 给一个sprite对象版定一个filter 安卓木有办法显示 上面的cutLayer 是一个sprite对象 我会通过手指的移动去绘制线条...
来源: Laya_社区 发布时间: 20180411