大约有 2,482 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0058 秒)
Laya_社区(720) Laya3.0_api(672) Laya2.0_api(367) laya_api(298) Laya_示例(150) Laya2.0_示例(114) Laya2.0_文档(107) Laya3.0_文档(54)
...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
...进行控制,以及获取声音信息。 */ public static function playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel { 你的参数传入是否正确那? 或者能否发一下你出问题部分的代码或者小demo那...
来源: Laya_社区 发布时间: 20180417
...态类,下面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
...函数才能删除 private var factory:Templet; public function Main() { //初始化引擎 Laya.init(800, 480, WebGL); Stat.show(0, 0); Laya.stage.scaleMode = "showall"; ...
来源: Laya_社区 发布时间: 20160902
...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
... @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
...个问题挺严重的,游戏里面好多流程是靠动效走下去的,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
...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
...现了还不如自己处理相关的部分。 核心就是如下方法: 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
...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