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

大约有 106 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0046 秒)

81. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 53%]

... ```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

82. 使用laya官方示例代码制作微信小游戏无法显示 [ 53%]

...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

83. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 52%]

... ```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

84. 粒子在webgl情况canvas情况存在显著差异,请看图 [ 52%]

... 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

85. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 52%]

... ```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

86. 通用发布 · LayaAir3.0文档 · LAYABOX [ 52%]

...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

87. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 52%]

...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

88. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 52%]

....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

89. 这样的panel请问如何实现比较好? [ 52%]

....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

90. Laya.loader.create中的progress回调好像不准确? [ 51%]

...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