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

大约有 1,219 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0044 秒)

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

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

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

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

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

1096. 我在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

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

1098. 导航容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...a.Handler(this, this.onSelecte); } // 根据选择tab的索引切换页面 private onSelecte(index: number): void { //切换ViewStack子页面 this.viewstack.selectedIndex = index; } } 最终的效果如动图1-7所示: (动图1-7) 2. ViewStack属性 ViewStack的特有属性如下: (图2-1...

来源: Laya3.0_文档 发布时间: 20240910

1099. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 47%]

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

1100. 微信小游戏开放域(ActionScript-小游戏适配文档-微信小游戏) [ 47%]

...)); ``` 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