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

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

1031. laya.display.Animation [ 54%]

...否是鼠标事件。 EventDispatcher  loadAnimation(url:String, loaded:Handler = null, atlas:String = null):Animation 加载并解析由LayaAir IDE制作的动画文件,此文件中可能包含多个动画。默认帧率为在IDE中设计的帧率,如果调用过set interval,则使用此帧...

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

1032. 如何获取list下单元格的坐标点? [ 54%]

...自: my26929 如果你想取得list下单元格的坐标可以通过mouseHandler方法来获取 list.mouseHandler=new Handler(this,onClick); } private function onClick(e:Event,index:int):void { if(e.type==Event.CLICK) { trace("xy:"+list.getCell(index).x,list.getCell(index).y); } }上面的坐标是...

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

1033. 怎么使用ttf,版本2.0.2 [ 54%]

...交 3 个回复 Laya_Aaron 赞同来自: Laya.loader.load("abc.ttf",Laya.Handler.create(this, this.abc)); demo里没写预加载字体的代码, 先加载字体,然后再在回调方法里 初始化场景 abc():void{         GameConfig.startScene && Laya.Scene.open(GameConfig....

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

1034. native2.0压缩纹理如何使用 [ 54%]

...微博 QZONE 微信 xiaoman122 赞同来自: Laya.loader.load("res/1.pkm", Handler.create(null, function():void {     var spr:Sprite = new Sprite();     spr.loadImage("res/1.pkm");     spr.pos(100, 100);     Laya.stage.addChild(spr); }), null, Loader.IMAGE); 附件就是tp转的图片,这...

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

1035. 位图字体ide无法注册 [ 54%]

...g文件同名 this.mBitmapFont.loadFont("res/bitmapFont/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){ init(); } function init(){ Laya.Text.registerBitmapFont(this.mFontName,this.mBitmapFont); } 2018-03-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

1036. 自定义loadingView [ 54%]

....loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Browser.window.loadingView

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

1037. 骨骼动画的使用(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 54%]

...ya.Scene3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` ![](img/6.gif)(图6)

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

1038. 骨骼动画的使用(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 54%]

...ya.Scene3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` ![](img/6.gif)(图6)

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

1039. layaair 2.0 在构造函数中获取基类的组件,报错说未定义。 [ 54%]

...ameLoading extends ui.gamoloadingUI{ constructor(){ super(); this.PB.changeHandler = new Laya.Handler(this,this.onChange); } } 基类中明确有PB变量,是进度条。此处构造函数中设置事件报错,说PB未定义,但是放在onEnable中是正常的,难道在执行完父类构造...

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

1040. 有没有SoundChannel的示例? [ 54%]

有没有SoundChannel的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (ch...

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