大约有 106 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0046 秒)
... ```JavaScript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = functi...
来源: Laya2.0_文档 发布时间: 20210715
...rsion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 new laya.UI_Label(); } 上图为在layaIDE中的显示效果。 不知道具体是什么原因,希望得到大家的指点...
来源: Laya_社区 发布时间: 20180529
... ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = functi...
来源: Laya2.0_文档 发布时间: 20210714
... 0, "minEndColor": { "0": 0, "1": 1, "2": 0, "3": 1 }, "textureFileName": "comp\\clip_num.png", "emissionRate": 0, "minHorizontalVelocity": 0, "emitterType": "null", "textureCount": 1, "minVerticalVelocity": 0, "boxEmitterVelocityAddVariance": { "0": 0, "1": 0, "2": 0 }, "ringEmitterCenterPosition":...
来源: Laya_社区 发布时间: 20180109
... ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = functi...
来源: Laya2.0_文档 发布时间: 20210714
...g”。 例如:现在我们将图3-5中原来的小图 img_head2.png 和 comp 目录下的 image.png 在项目中通过图集的方式显示出来,示例代码如下: let resArr: Array<any> = [ { url: "resources/atlas/Atlas.atlas", type: Laya.Loader.ATLAS }, { url: "resources/atlas/Atlas...
来源: Laya3.0_文档 发布时间: 20240926
...ginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.s...
来源: Laya_社区 发布时间: 20180525
....init(600, 400); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS); //添加UI界面 function onAssetLoaded() { Laya.stage.addChild(new TestUI()); } 附件 : --> ButtonClickDemo.rar 2017-05-13 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170513
....stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS); } } new GameMain(); Test.zip 2018-08-10 0 1 分享 微博...
来源: Laya_社区 发布时间: 20180810
...ayaScene_yueren/yueren.ls", Laya.Handler.create(this, function () { //complete func console.log("Scene loaded"); isLoaded = true; }), Laya.Handler.create(this, function (pro) { if (debug) console.log("Loading progresss : " + pro); }, null, false), Laya.Scene); Monica • 201...
来源: Laya_社区 发布时间: 20180321