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

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

301. 真机下运行帧率不稳定 [ 69%]

...式都有这个问题  class Scene_Test { constructor() { super(); Laya.timer.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的信息。   请...

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

302. 玩游戏,微信信息等有弹框,游戏tween就卡住一会,然后声音会不响会,请问如何监测到 [ 69%]

...音会不响一会,请问如何监测到!就是引擎说的为了性能timer自动停止!用什么事件去检测这个呢?focus貌似不行! 2017-09-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 ang...

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

303. laya.ui.Panel [ 69%]

...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node toolTip : * 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ,用来实现自定义样式的鼠标提示和参数携带等。 Component top : Nu...

来源: laya_api 发布时间: 20170929

304. 自定义对话框设置zOrder后,关闭时报错 [ 69%]

...zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", CountdownUI); return countdownBar; }()); CountdownBar.prototype.countdown = function () { this.count--; if (this.count > 0) { this.countLab...

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

305. laya.d3.terrain.TerrainChunk [ 69%]

...显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node clone():Node 克隆。 Sprite3D contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node  de...

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

306. ProgressBar 代码问题 [ 69%]

...ading : Onloading = new Onloading();     loading.popup(true);     Laya.timer.loop(100, this, loading.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{        constructor(){        super();        this.loadingBar.changeHandl...

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

307. 自动旋转后残影 [ 69%]

...; Laya.init(0, 0,true); Laya.stage.bgColor = "#000000"; ChangeSize(); Laya.timer.once(1000,this,function start():void{ Laya.stage.on(Event.RESIZE,this,onResize); }); }   protected function HengPing(): void { trace("设置横屏" ); var layaCanvas:Object = Browser.getElementById("layaCanvas"); layaC...

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

308. 请问 LayaAir中有没有类似 Unity中Invoke()之类的函数, 几秒钟之后,或者说动画播放完成后调用某一个函数? [ 69%]

...关的链接 提交 1 个回复 liuliqianxiao 赞同来自: 可以用Laya.timer.once这个来执行延时函数。 2018-01-04 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 LM20081991 相关问题 两个对象new了一个相同的对象...

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

309. laya.ui.Component [ 68%]

...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node  toolTip : * 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ,用来实现自定义样式的鼠标提示和参数携带等。 Component  top ...

来源: laya_api 发布时间: 20170929

310. laya.ui.CheckBox [ 68%]

...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node toggle : Boolean 指定按钮按下时是否是切换按钮的显示状态。 Button toolTip : * 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ...

来源: laya_api 发布时间: 20170929