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

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

51. layaAir TS项目如何引用protoBuf库? [ 60%]

... package awesomepackage;   message AwesomeMessage {       required string awesomeField = 1;  }     放在laya/proto下面,proto这个文件夹没有请自己创建。   2、在bin下的index.html里的这个位置,看粗体部分,protobuf.js在项目里已经存在了,不需要再...

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

52. httpRequest send返回Request failed Status:0 [ 58%]

...= function (URL, id, data) { // private completeHandler(data: Object, URL: string, id: number): void { //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //......解密逻...

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

53. laya.ui.Clip_API3.0 [ 58%]

...ParentPoint updateZOrder fromImage Constructors constructor new Clip(url?: string, clipX?: number, clipY?: number): Clip Overrides UIComponent.constructor Defined in laya/ui/Clip.ts:151 创建一个新的 Clip 示例。 Parameters Default value url: string = null 资源类库名或者地址 Default ...

来源: Laya3.0_api 发布时间: 20231115

54. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 58%]

...ets/Main-dat:yunlong System.IO.Directory.CreateDirectoriesInternal (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:131) System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System....

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

55. sound manager在MOUSE_OVER事件中无法播放 [ 57%]

...ySound);         }          private createButton(label: string): Sprite {             var w: number = 110;             var h: number = 40;              var button: Sprite = new Sprite();             button.size(w, h)...

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

56. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 56%]

...("skyBox/skyCube.ltc"); camera.sky = sky; } private _sprite3dURl:string = "LayaScene_ActionCheck/ActionCheck.lh"; wky379937316 • 2018-03-19 21:08 这是什么情况呢?是引擎不支持场景吗?如果能解决,请给一个解决方案,谢谢 涛涛~ • 2019-07-06 16:...

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

57. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 54%]

...      private mDecorate:Decorate;//装饰器         private mHost: string;         private mPort: number;         private mConnected: boolean;         /** 开启*/         public static OPEN: string = "open";         /** 关闭*/         public static CLOSE: string = ...

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

58. 使用createFrames创建的图集动画。如何单独修改这个缓存动画播放速度 [ 53%]

...播放速度了!/** * 角色创建 */ public function init(interval,type:String,hp:Number,speed:Number,hitRadius:Number,camp:Number,heroType:Number = 0):void { //初始化属性 this.type = type; this.hp = hp; this.speed = speed; this.hitRadius = hitRadius; this.camp = camp; this.heroType = heroTy...

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

59. socket报错,on: reserved1 = 1, reserved2 = 1, reserved3 = 0 [ 51%]

...yUrl("ws://127.0.0.1:9000");//建立连接; } } public function send(msg:String):void { if(this.socket.connected){ var byte:Byte = new Byte(); byte.writeUTFString(msg); this.socket.send(byte.buffer); } } private function openHandler(event:Object = null):void { //正确建立连接; trace("openHa...

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

60. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 50%]

...         private var t_obj:Object;         private var url_img:String = "res/";                    public function WWJ_Main()          {             Laya.init(stageWidth, stageHeight);                          Laya.stage.alignV = Stage.ALIGN...

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