大约有 1,234 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0046 秒)
Laya_社区(703) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...s.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLayer = this.tMap.getLayerByName("player"); this.tMapPlayer = new Laya.Sprite(); this.tMapPlayer.graphics.drawRect(0, 0, 100, 100, "#FF0000", "#0000FF", 1); //this.tMapPlayer.loadImage("u...
来源: Laya_社区 发布时间: 20170627
...保存成功了,但是用Laya.loader.load 读取的时候始终读不了private function downloadFile(url:String,onComplete:Handler,onError:Handler=null):void{ if(window.conch) { var folder:String=window.conch.getCachePath()+"/download/"; if (!window.fs_exists(folder)) { window.fs_mkdir(folder); }...
来源: Laya_社区 发布时间: 20190731
...rotected onHide() { super.onHide(); this.contentPane.offAllCaller(this); } private startGen(): void { // todo } } class SplitAtlasSetting { @IEditor.onLoad static start() { Editor.typeRegistry.addTypes([ { name: "SplitAtlasSetting", catalogBarStyle: "hidden", properties: [ { name: "help", caption: "...
来源: Laya_社区 发布时间: 20250731
...协议内容一起发送到服务端呢?我的做法是这样子的: private onAssetsLoaded(data:string):void{ var pack:any = this.ProtoBuf.loadProto(data).build("test"); var MSG_HEADER:any = pack.MSG_HEADER; var byte:Laya.Byte = this.socket.output; byte.writeInt32(MSG_HEADER.LoginGame);//和服...
来源: Laya_社区 发布时间: 20170217
...ug或者说是onEnable和onAwake的坑 官方源码如下: /** *@private */ __proto._activeHierarchy=function(activeChangeScripts){ this._setBit(/*laya.Const.ACTIVE_INHIERARCHY*/0x02,true); if (this._components){ for (...
来源: Laya_社区 发布时间: 20190730
...og a是一个list,点击其中的任何一个list item,触发方法: private onSelect(index:number):void { console.log("当前选择的索引:" + index); //this.theItem = new DlgNote2(); //this.theItem.popup(); Laya.Scene.open("note2Dlg.scene"); } ——就是这里:我...
来源: Laya_社区 发布时间: 20190521
...nabled属性)。 Node onAsynLoaded(url:String, data:*, params:Array):void private Sprite3D once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦听器能够接收事件通知,此侦听事件响应一次后则自动移除侦...
来源: laya_api 发布时间: 20170929
... 1553745787用户 赞同来自: class DialogPage extends ui.DialogPageUI { private tip:Laya.TipManager = new Laya.TipManager(); constructor() { super(); this.popupEffect= new Laya.Handler(this, function(dialog:Dialog):void { dialog.scale(1, 1); Laya.Tween.from(dialog, {x: Laya.stage.width / 2, y: La...
来源: Laya_社区 发布时间: 20180620
...)); ``` onComplete方法,注意与原版有部分修改。 ```typescript private function onComplete():void() { //获取资源 var testJosn:* = Laya.loader.getRes("json/reward.json"); //输出透传过来的json console.log('透传的json信息:', testJosn); //加载IDE指定的场景 var big:Bi...
来源: Laya2.0_文档 发布时间: 20210715
...r.create(this,this.gameStart),Handler.create(this,onProgress,null,false)); private var assetArr:Array=[ {url:"sound/bgMusic.mp3", type:Loader.SOUND}, {url:"sound/button.mp3", type:Loader.SOUND}, {url:"sound/error.mp3", type:Loader.SOUND}, {url:"sound/getXing.mp3&qu...
来源: Laya_社区 发布时间: 20180531