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

大约有 465 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

191. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 57%]

...ain.MaskDemo() Laya.timer.frameOnce(5, app, ()=>{ app.init() Laya.timer.frameLoop(2, app, app.getPixels) }) 2017-12-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: canvas下,不会...

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

192. laya.d3.core.BaseCamera [ 57%]

...event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Fu...

来源: Laya2.0_api 发布时间: 20190513

193. 如何清除graphics绘制的矢量图 [ 57%]

...动画循环播放Label事件被清除 webgl 绘制graphics出报错 调用frameLoop之后,怎么清除 怎么检测点是否在 graphics所绘制的区域内 问题状态 最新活动: 2017-08-17 15:11 浏览: 1638 关注: 2 人

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

194. 关于customRender函数不执行的问题 [ 57%]

...ustomRender函数不执行的问题 // 保证customRender必定执行 this.frameLoop(1, this, () => { this.graphics.clear(); this.graphics.drawLine(0, 0, 1, 0, '#000'); }); this.customRenderEnable = true; this.customRender = (context: Laya.RenderContext, x: number, y: number) => { let webGLCon...

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

195. 骨骼怎么没有gotoAndStop方法 [ 57%]

...复 cuixueying 赞同来自: 可以给你的龙骨添加一个Laya.timer.frameLoop计时器,当index(当前帧索引)==total(总帧数)的时候,调stop方法停止并移除计时器即可。 2017-01-17 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...

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

196. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 57%]

...aram coverBefore 是否覆盖之前的延迟执行,默认为 true 。 */ frameLoop(delay: number, caller: any, method: Function, args?: Array<any>, coverBefore?: boolean): void; /** 返回统计信息。*/ toString(): string; /** * 清理定时器。 * @param caller 执行域(this)。 * @par...

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

197. laya 2.4 linearVelocity问题 [ 57%]

...rig.enabled=true; rig.linearVelocity = new Laya.Vector3(-5,0,0) Laya.timer.frameLoop(1,this,()=>{   rig.linearVelocity= new Laya.Vector3(rig.linearVelocity.x,0,rig.linearVelocity.z) console.log("rig.linearVelocity==",rig.linearVelocity); }) 附件 : --> LayaPro.rar 2019-12-02 添加评论 免费...

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

198. 如何定义动画播放过某帧后的回调函数 [ 57%]

...会这么写代码吧。。。 cuixueying • 2017-02-22 17:30 Laya.timer.frameLoop(1,this,Handlre.create(this,onLoop)) public funciton onLoop():void { if(ani.index==2) { trace("ani已经播放到第二帧了"); } }

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

199. laya.d3.core.Camera [ 57%]

...event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Fu...

来源: laya_api 发布时间: 20170929

200. 舞台上有个label,我能通过截图保存成图片么 [ 56%]

... sp.addChild(label); sp.size(200,200); Laya.stage.addChild(sp); Laya.timer.frameLoop(60,this,function():void{ var htmlC:HTMLCanvas=sp.drawToCanvas(200,200,0,0); var texture:Texture=new Texture(htmlC); var sp2:Sprite=new Sprite(); sp2.graphics.drawTexture(texture,100,100,100,100); sp2.pos(300,0); Lay...

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