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

大约有 1,246 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)

741. 正交摄像机裁剪问题 [ 67%]

...p = Laya.Sprite3D.load('res/01/mfs_01.lh'); scene.addChild(sp); sp.on(Laya.Event.HIERARCHY_LOADED, this, function(){ sp.transform.localPosition = new Laya.Vector3(1, 1, 1); var scale = 1; var v3 = sp.transform.localScale; v3.x = scale; v3.y = scale; v3.z = scale; sp.transform.localScale = v3; }) //...

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

742. 动画实例在调用含有名字参数的时候获取不到边界 [ 67%]

... 骨骼动画播放完后的回调时间 图集打包找不到图集文件 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 怎么获取对象的坐标 问题状态 最新活动: 2020-09-11 15:01 浏览: 2083 关注: 2 人 198*****136 • 2020-09-11 16:34 export default class Scene_Ba...

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

743. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 67%]

...ss VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListene...

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

744. Skeleton骨骼动画内存泄漏 [ 67%]

...== 97){ if(this.te == null){ this.te = new Laya.Templet(); this.te.on(Laya.Event.COMPLETE, this, this.teComplete); this.te.loadAni("res/wing_01_side.sk"); } } else if(e.keyCode == 50 || e.keyCode == 98) { if(this.te != null){ this.te.destroy(); this.te = null; this.sk.destroy(); this.sk = null; } } ...

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

745. layaAir1.3.1版本SWF组件播放速度异常 [ 67%]

...后 示例如下: package { import laya.ani.swf.MovieClip; import laya.events.Event; public class AAA { private var swf:MovieClip; public function AAA() { Laya.init(550,400); swf=new MovieClip(); swf.load("data.swf"); swf.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(swf); } private function...

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

746. 事件响应函数的参数在API中哪里可以查到 [ 67%]

...关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 看下Event的API 2017-10-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 czb3279338858 相关问题 分享:自定义事件派发与侦听(A页面派发 B页面侦...

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

747. 如何给loadprogress传参数? [ 67%]

...能用类似命令行,或者编译参数等等方式调用? Dispather.event参数传的是数组,为什么收到的参数却是个int类型? 点击按钮打开对话框的时候能往对话框中传一个参数吗 as3中如何定义html中的id参数 对象池对类怎么传参数 http 请...

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

748. 请大家帮助优化一下这个抛物线的代码 [ 67%]

...a.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Laya.Event.CLICK,this,this.onClick); Laya.timer.frameLoop(1,this,this.onEnterFrame); } private onEnterFrame():void{ if(this.points.length>0){ if(this.i<this.points.length){ this.ball.x = this.points[this.i].x; this.ball.y = ...

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

749. 横向循环滚动的list [ 67%]

...09 0 0 分享 微博 QZONE 微信 - 赞同来自:  this._list.on(fairygui.Events.SCROLL, this, this.doSpecialEffect); 监听到list发生滚动,进行判断位置和修改item的大小。 2019-06-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...

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

750. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 67%]

...hild(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map = new this.BMap.Map(this.mapDiv); // 禁用部分交互 //this.map.disableDragging(); this.map.disableKeyboard(); this.map.disableScrollWheelZoom(); this.map.disa...

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