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

大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)

171. 游戏系怎么把一些共用的功能独立出来 [ 68%]

...       ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false)); 3、注入JSvar js:any = Laya.loader.getRes("res/atlas/choujiang.js"); Browser.window.eval(js); 4、运行JS var ChouJiang = Browser.window.eval("模块名+类名...

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

172. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 68%]

... Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100)...

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

173. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 68%]

...g_url等于“”的时候,底层判断会走到这个接口下面 this.onLoaded(null)   load(url, type = null, cache = true, group = null, ignoreCache = false, useWorkerLoader = ILaya.WorkerLoader.enable) {             if (!url) {                 th...

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

174. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 68%]

...nsole.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() function onLoaded(): void { //实例UI界面 var testUI: FishPonds = new FishPonds(); Laya.stage.addChild(testUI); Laya.timer.loop(1000, this, function () { testUI.rotation = 360 console.log("rotation!" + testUI.ro...

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

175. 鼠标穿透问题 [ 68%]

...er.load([{url:"image/comp.json", type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _list = new List(); _list.itemRen...

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

176. 请问在设计模式下制作的UI页面,到底怎么在代码里使用???官方教程不一样 [ 68%]

...e.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas     附件 : --> 2017-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

177. 急急急,如何设置按钮点击加载ani [ 68%]

...源             Laya.loader.load(aniPath, Handler.create(this,onLoaded),null,Loader.ATLAS);         }                  private function onLoaded():void {             //加载按钮资源             Laya.loader.load(skin,Handler.create(this...

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

178. 导入微信小游戏的时候 [ 68%]

...AsynLoaded (http://127.0.0.1:65353/game/code.js:82641:10)     at ResInfo.onLoaded (http://127.0.0.1:65353/game/code.js:12995:61)     at EventHandler.__proto.runWith (http://127.0.0.1:65353/game/code.js:711:59)     at ResInfo.__proto.event (http://127.0.0.1:65353/game/code.js:483:28)     at L...

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

179. 关于资源加载的问题 [ 68%]

...){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 并没有getRes操作。我按这样子写法就不行

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

180. js中使用sharedMesh报错 [ 68%]

...//E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:693:26) at ResInfo.onLoaded (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12657:28) at EventHandler.__proto.runWith (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:709:27) at ResInfo.__proto.event (file:///E:/Lay...

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