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

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

281. SCALE_FIXED_WIDTH适配屏幕的问题 [ 55%]

...s Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.title = 'GG游戏;             if (Laya.Browser.onPC) {              ...

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

282. Laya.loader.create 不会反馈失败状态跟描述不符合 [ 55%]

....log("3d加载完毕:" + success); }),Laya.Handler.create(this, (progress: number) => { })); 这是个数组。。但是场景文件不存在,失败参数都是空的。。跟文档描述不符合 附件 : --> 2019-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

283. 一个很奇怪的问题,不知道其他同学遇到没有 [ 55%]

...mmon.ts中定义的类: class common{ constructor(){ } public static num : number = 1000000; } 然后启动调试,居然报了这个错:     Uncaught ReferenceError: common is not defined     at new main (main.ts:4)     at main.ts:11   我试了很多次,都是这样,哪位大神给解答以...

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

284. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 55%]

...s Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.title = 'GG游戏;             if (Laya.Browser.onPC) {              ...

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

285. Resources already exist,is repeated loading 加载特效报重复加载 [ 55%]

...tate1:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private scaleDelta:number = 0;     private scaleValue:number = 0;              private layaMonkey_clone1:Laya.Sprite3D;     private layaMonkey_clone2:Laya.Sprite3D;     private layaMonkey_clone3:Laya.Sprite3D;      ...

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

286. 射线检测-射线检测 [ 55%]

...BoxCollider)"; //指定精灵的层 sprite3d1.layer = Laya.Layer.getLayerByNumber(10); sprite3d2.layer = Laya.Layer.getLayerByNumber(10); sprite3d3.layer = Laya.Layer.getLayerByNumber(13); sprite3d4.layer = Laya.Layer.getLayerByNumber(13); /** * 给精灵添加碰撞器组件 * BoxCollider : 盒型...

来源: Laya_示例 发布时间: 20251130

287. UI-RefreshList [ 55%]

...用于处理单元格上的点击事件等 */ onListMouse(e: Event, index: number): void { console.log(e.target.name); if (e.type == Event.MOUSE_DOWN) { this.mouseDown = true; //如果单元格已经展开,则先恢复 if (this.itemIsOpen) { this.itemIsOpen = false; this.itemOpenId = -1; Tween.to(...

来源: Laya2.0_示例 发布时间: 20251130

288. Cannot read property 'toDefault' of undefined报错是什么原因 [ 55%]

...1就是下面这句报错 Laya.Physics.rayCast(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); if (this._outHitInfo.sprite3D.name === "tlj"){ isRotate = !isRotate; } // this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, state); // //绘出射线 // this.phasorSpriter3D.line(this.ray.origin.x, th...

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

289. Mac下LayaAirIDE1.7.20版本声音预加载失败,但windows下同个版本加载正常 [ 55%]

...e),Handler.create(this,onProgress)); } private function onProgress(loadNum:Number):void { }   private function onComplete():void { } 附件 : --> 2018-11-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aar...

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

290. 高级应用-渲染纹理 [ 55%]

...meshSprite: Laya.MeshSprite3D = spirit3D as Laya.MeshSprite3D; for (var i: number = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var mat: Laya.StandardMaterial = meshSprite.meshRender.sharedMaterials[i] as Laya.StandardMaterial; mat.disableLight(); } } for (var i: number = 0; i < spir...

来源: Laya_示例 发布时间: 20251130