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

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

1101. laya.d3.core.glitter.Glitter [ 47%]

...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

1102. httpRequest send返回Request failed Status:0 [ 47%]

..."); } } GameMain.prototype.completeHandler = function (URL, id, data) { // private completeHandler(data: Object, URL: string, id: number): void { //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写...

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

1103. unity里导出的骨骼动画无法读取 [ 47%]

...ya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void         {              //添加3D场景              var scene:Scene = new Scene();              Laya.stage.addChild(scene);            ...

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

1104. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 47%]

...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

1105. LayaNative中加载自己缓存的资源 [ 47%]

...保存成功了,但是用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

1106. [LayaAirIDE3]【插件开发】配置方式可以生成非常复杂的界面的部分疑惑 [ 47%]

...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

1107. websocket 中 protobuf 数据的发送与接收的具体方法是怎样的? [ 47%]

...协议内容一起发送到服务端呢?我的做法是这样子的: 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

1108. Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 [ 47%]

...ug或者说是onEnable和onAwake的坑 官方源码如下: /**     *@private     */     __proto._activeHierarchy=function(activeChangeScripts){         this._setBit(/*laya.Const.ACTIVE_INHIERARCHY*/0x02,true);         if (this._components){             for (...

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

1109. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 47%]

...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

1110. laya.d3.core.light.LightSprite [ 47%]

...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