• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0057 秒)

1071. 一个EffectAnimation只能创建一个动画效果吗 [ 71%]

...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

1072. 官方DynamicBatchTest照做为什么动态合不了批? [ 71%]

...;   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

1073. Laya.Handler.create和new Laya.Handler有啥区别 [ 71%]

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

1074. Laya.util.Ease这个类是用来配合Tween的,可是怎么使用?没有任何资料啊。 [ 71%]

...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

1075. Dialog中编辑的动画如何控制? [ 71%]

...同来自: 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

1076. 前述问题this.sp3Role.transform.position无效 [ 71%]

前述问题this.sp3Role.transform.position无效 您好,之前这个帖子(http://ask.layabox.com/question/50395)你们回复的this.sp3Role.transform.position这个方法只让主角移动和camera.transform.position相机跟随无效,因为主角无法移动,camara还没办法尝试,...

来源: Laya_社区 发布时间: 20220622

1077. 从网络上下载的BMP图片二进制数据后,如何赋值给 laya.ui.Image [ 71%]

...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

1078. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 71%]

...贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(...

来源: Laya2.0_文档 发布时间: 20210714

1079. shader 问题[关闭] [ 71%]

...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

1080. 小游戏安卓不支持filters [ 71%]

...lters.GlowFilter("#00CCFF", 10, 0, 0); //设置滤镜集合为发光滤镜 this.cutLayer.filters = [glowFilter]; 测试了一下 最新的引擎版本 给一个sprite对象版定一个filter 安卓木有办法显示  上面的cutLayer 是一个sprite对象 我会通过手指的移动去绘制线条...

来源: Laya_社区 发布时间: 20180411