大约有 148 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0047 秒)
...class GameMain{ private tMap:Laya.TiledMap; constructor() { Laya.init(Laya.Browser.width, 224, Laya.WebGL); this.tMap = new Laya.TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("../bin/res/MarioMap1.json", viewRect, Laya.Handler.create(this,this.initMap)); } priv...
来源: Laya_社区 发布时间: 20190212
...自动回收,什么时候需要手动回收。 (function(){ var Browser = Laya.Browser; Laya.init(Browser.clientWidth, Browser.clientHeight, Laya.WebGL); var stage = Laya.stage; stage.bgColor = "#00ffff"; stage.alignH = "center"; stage.alignV = "mi...
来源: Laya_社区 发布时间: 20171012
...赞同来自: The maximum heap size you can try is 2048MB - 16MB = 2032MB. Browsers currently don't support allocating anything larger than that. If you are running on a 32-bit browser, a HEAP size of 512MB or 768MB is about the maximum that is possible. 参照一下ue4 的回答 2019-09-06 0 0 ...
来源: Laya_社区 发布时间: 20190322
....js:4515 TypeError: addGlobalValueDefine is not a function TypeError: Laya.Browser.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is n...
来源: Laya_社区 发布时间: 20190418
...法使用。代码是使用的2.12.2beta1引擎示例的源码。 var Browser = Laya.Browser; var WebGL = Laya.WebGL; var Stage = Laya.Stage; var Event = Laya.Event; var Stat = Laya.Stat; var SpineTemplet = Laya.SpineTemplet; class SpineBinary { constructor() { this.aniPath = "r...
来源: Laya_社区 发布时间: 20211013
...timer.once(400,this,function():void{ var rankTexture:Texture = new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.height); }); 报错bitmap._addR...
来源: Laya_社区 发布时间: 20180504
...,详细教程https://ldc.layabox.com/doc/?nav=zh-ts-5-0-0 console.error Browser.__init__ @ code.js:7132 (anonymous) @ code.js:7057 (anonymous) @ code.js:53348 (anonymous) @ code.js:53360 require @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ game.js? [sm]:2 require @ WAGame.js:3 (anonymous)...
来源: Laya_社区 发布时间: 20180510
...教程https://ldc.layabox.com/doc/?nav=zh-ts-5-0-0 console.error @ VM163:1 Browser.__init__ @ code.js:7131 (anonymous) @ code.js:7056 GameEx @ code.js:56322 (anonymous) @ code.js:56681 require @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ game.js? [sm]:2 require @ WAGame.js:3 (anonymous) @ g...
来源: Laya_社区 发布时间: 20180426
...ace\LayaAir\6\bin\h5\LayaSample.max.js:7277 Browser._window.addEventListener('message',function(e){ ^ TypeError: Browser._window.addEventListener is not a function at Function.Browser.__init__ (D:\wo...
来源: Laya_社区 发布时间: 20180727
...相关的链接 提交 3 个回复 李政666 赞同来自: //主域if(Laya.Browser.onMiniGame){//加载一个json和图集Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){//加载完成//使用接口将图集透传到子域Laya.MiniAdpter.sendAtlasToOp...
来源: Laya_社区 发布时间: 20190419