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

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

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

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

102. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 63%]

...于2D图集,需要说明一下,我们只支持LayaAirIDE自己生成的atlas图集纹理压缩。第三方的图集,我们并不支持。 LayaAirIDE生成的图集,我们可以在图片路径那一栏,拖入.png后缀图片或.atlas图集文件,都可以被识别,然后压缩成功的...

来源: Laya2.0_文档 发布时间: 20210714

103. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 62%]

...uot;; this.init() } init() { // 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function()...

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

104. Android替换游戏启动logo看不到设置的图片 [ 62%]

....loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") ...

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

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

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

106. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 61%]

...作。代码如下: 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 =...

来源: Laya3.0_文档 发布时间: 20230303

107. 限制区域拖动效果,为什么会无法限制呢? [ 61%]

...eVersion.FILENAME_VERSION);  function beginLoad() { Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); }  function onLoaded() { Laya.stage.addChild(new GolfMainUI()); }   附件 : --> 2018-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

108. VBOX动态增加的元素没有自动布局 [ 61%]

...了 } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }         完整项目请见附...

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

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

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

110. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 59%]

...ce(); })(); function loadResource(){ var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangf...

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