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

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

2051. 我用的HBox做的进度条为啥总是一闪一闪的。 [ 50%]

...ya.HBox做的这个字体为啥总是一闪一闪的 没有一直显示啊 public onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); var num:number = Math.floor(value*100); // this.updateFont(num); this.updateFont(100); //test用 // if(num==100){ // G.I.loginMa...

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

2052. 背景音乐播放完毕要等很久才开始循环播放,版本1.7.17 [ 50%]

...进行控制,以及获取声音信息。          */         public static function playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel { 你的参数传入是否正确那? 或者能否发一下你出问题部分的代码或者小demo那...

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

2053. ts项目,我在程序主入口声明了公共静态类,下面new出了一个对象,把他添加到舞台中出错。 [ 50%]

...态类,下面new出了一个对象,把他添加到舞台中出错。 public static GameStart:GameStart; GameMain.GameStart=new GameStart(); Laya.stage.addChild(GameMain.GameStart); 报错:file: 'file:///e%3A/LAYABOX/CaiCi/src/GameMain.ts' severity: '错误' message: 'Argument of type 'GameStar...

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

2054. Templet资源删除不掉 [ 50%]

...函数才能删除         private var factory:Templet;         public function Main()         {             //初始化引擎             Laya.init(800, 480, WebGL);             Stat.show(0, 0);             Laya.stage.scaleMode = "showall";   ...

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

2055. laya.physics.Physics_API3.0 [ 50%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/Physics" Physics Class Physics 2D物理引擎,使用Box2d驱动 Hierarchy EventDispatcher Physics Index Constructors constructor Prope...

来源: Laya3.0_api 发布时间: 20231115

2056. 预加载进入游戏界面 [ 50%]

... @return 此 LoaderManager 对象本身。          */         public function load(url:*, complete:Handler = null, progress:Handler = null, type:String = null, priority:int = 1, cache:Boolean = true, group:String = null, ignoreCache:Boolean = false):LoaderManager { 2018-04-18 0 0 分享...

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

2057. Laya.tween设置了完成回调函数,但是偶尔会出现不回调的问题 [ 50%]

...个问题挺严重的,游戏里面好多流程是靠动效走下去的,public tweenRepeatComplete(item):void{ item.tweener=Laya.Tween.to(item.value, toProps, item.duration *1000, item.easeType, Handler.create(this,this.__tweenRepeatComplete,[item])); 这代码只是个示例 item.tweener.update=...

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

2058. 2D物理-桥 [ 50%]

...dy; import laya.ui.Label; import laya.utils.Stat; import laya.webgl.WebGL; public class Physics_Physics_Bridge { private var ecount = 30; private var label: Label; public function Physics_Bridge() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDe...

来源: Laya2.0_示例 发布时间: 20260106

2059. Laya的Dialog上如果有按钮 我希望点击到按钮或者其他可以相应的控件 不会触发拖动效果 [ 50%]

...现了还不如自己处理相关的部分。 核心就是如下方法: public setCanDrag(canDrag:boolean) { this.m_CanDrag = canDrag; if(this.m_CanDrag) { this.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } else { this.off(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } }  onMouseDown(e:...

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

2060. laya.d3.component.animator.AnimatorState_API3.0 [ 50%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/Animator/AnimatorState" AnimatorState Class AnimatorState AnimatorState 类用于创建动作状态。 Hierarchy EventDispatcher An...

来源: Laya3.0_api 发布时间: 20231115