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

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

1741. 摄像机旋转问题 [ 56%]

...tRound():void         {             Laya.timer.frameLoop(1, this, function():void{                 camare.transform.rotate(_rotateC);             });         } 这个并不是绕物体旋转的 2017-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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

1742. 无法获得到tiled map的自定义属性 [ 56%]

无法获得到tiled map的自定义属性 var isXg = this.tiledMap.getTileProperties(1, 30, "isXg");   上面的一行代码获取块的自定义属性,bool型,但是获取的结果始终为null,传的值也没有问题。官方的文档上有讲的不够详细。   2018-12-09 添加评论...

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

1743. 材质的加载(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 56%]

...//材质加载 BaseMaterial.load("res/skyBox2/skyBox2.lmat",Handler.create(this,function(mat:BaseMaterial):void { var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` ![](img/1.png)...

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

1744. LayaAir下TTF字体的使用方式? [ 56%]

...nt="hu" text.pos(600,600); Laya.stage.addChild(text); Laya.timer.once(1000,this,onLoop); } private function onLoop():void { var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="嘻嘻嘻嘻嘻"; text.font="hu" Laya.stage.addChild(text); } } }  注意:  首次用到的(...

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

1745. 无法获取音频的时间长度 [ 56%]

...undManager.playMusic("resources/sound/dh/gril1.wav", 1,Laya.Handler.create(this,() => {       }));     console.log(soundChItem.position+"");     console.log(soundChItem.duration+""); 附件 : --> 2023-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

1746. Animation 播放完成回调有参数吗 [ 56%]

Animation 播放完成回调有参数吗 Animation.on(Event.COMPLETE, this, bfwc); function bfwc(e){         console.log(e.target.name); }    是错误的 2017-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

1747. 【字节小游戏】游戏中播放视频 [ 56%]

...位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); } } new DOM_Video(); 2020-09-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

1748. 分享个代码 实现 Mesh 3D 点击 [ 56%]

...;     webglRaycaster.SetMeshCastLayer(node);     node.on(Event.CLICK,this, onNodeClickedHandler); 4,方法:   private function onNodeClickedHandler(source:Sprite3D):void    {      if (!source) return;      trace(source.name);   } 附件 : --> WebglRaycaster.zip 2017-05-16 添加...

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

1749. Event触发不了 [ 56%]

... 50, "#000"); btn.pos(100, 200); btn.size(50,50); btn.on(Event.MOUSE_DOWN, this, function():void {console.log(1);}); btn.on换成Laya.stage.on是可以触发的,但是btn却触发不了。 麻烦解答,谢谢。 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

1750. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 56%]

...onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```java //创建一个Animation实例 var tl:Animation = new Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步:添...

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