大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0190 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...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
... 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
...e ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 private function beginLoad():void { //加载引擎需要的资源 //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); Laya.loader.load ...
来源: Laya_社区 发布时间: 20180513
... 想做不同场景之间的切换。 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
..., 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
...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
...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
...恢复 /** *释放纹理 */ __proto.destroyTexture=function(){ if(this._mainTexture!=null){ this._mainTexture.disposeBitmap(); } this._needRecoverTexture = true; } /** * 恢复纹...
来源: Laya_社区 发布时间: 20201128
...了你的代码后,现在显示正常了。 __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
...上了),正解应该是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