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

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

2131. layaair2-cmd安装报错 [ 66%]

...ta\Roaming\npm\node_modules\layaair2-cmd\node_modules\gulp-babel'     at Function.Module._load (internal/modules/cjs/loader.js:562:25)     at Module.require (internal/modules/cjs/loader.js:690:17)     at require (internal/modules/cjs/helpers.js:25:18)     at Object.<anonymous> (E:\cyh5...

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

2132. dialog的lock属性没出现 [ 66%]

... private const CLOSE_BTN_PADDING:int = 5; private var assets:Array; public function DialogCenterClose() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; ...

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

2133. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 66%]

...e ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 private function beginLoad():void {             //加载引擎需要的资源             //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded));              Laya.loader.load ...

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

2134. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 66%]

... 想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityPlugin 1.1.0导出了 ls 场景文件,在通过Laya.loader.create()预加载后。在3次Laya.Scene.load()后,最后一次 Laya.stage.destro...

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

2135. 关于资源加载的问题 [ 66%]

..., Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 并没...

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

2136. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 66%]

...f = this; Util3d.loadRes( [ this.sMapRes, this.sBullRes, this.sEnemyRes ], function (bIsFinish) { if (bIsFinish) { self.onResFinish(); } } ) } onResFinish() { let pNewScene = <Laya.Scene3D>Util3d.getRes(this.sMapRes, false) Laya.stage.addChild(pNewScene); Util3d.getChildByPath(pNewScene, "Main...

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

2137. worker.js 使用问题 [ 66%]

...t TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:33519)     at Texture2D.__proto.recreateResource (laya.d3.js:33562)     at Texture2D.__proto.activeResourc...

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

2138. spine 推荐使用方式 [ 66%]

...恢复 /**     *释放纹理     */     __proto.destroyTexture=function(){         if(this._mainTexture!=null){             this._mainTexture.disposeBitmap();         }         this._needRecoverTexture = true;     }     /**      * 恢复纹...

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

2139. png使用base64显示异常 [ 66%]

...了你的代码后,现在显示正常了。 __proto.parseImgForBuffer = function(url,data){ var _this = this; var image; var onload = function () { // image.onload = null; // image.onerror = null; // var data = Laya.Texture2D._parse(image); // data._url = "sdfasf" // _this.onLoaded(data); img=HTML...

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

2140. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 66%]

...上了),正解应该是1   // if (typeof this._oDrawing.makeImage == "function" && (!this._android || this._android >= 3)) { if (typeof this._oDrawing.makeImage == "function") {   2020-04-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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