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

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

101. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 69%]

...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(skin, Handler.create(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { //实例化下拉列表 comboBox= new ComboBox(skin, "item0,item1,item2,item3,item4,item5"...

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

102. 微信小游戏怎么加载本地的配置文件 [ 69%]

...nfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; config=laya.net.Loader.getRes("res/config/playerCard.json"); Playe...

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

103. Laya.Quaternion.lookAt函数的参数只能用Laya.Vector3??? [ 69%]

...擎有没有管理或访问系统剪贴板的方法函数 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 注册函数里面 事件侦听函数的执行域 的详解 关于customRender函数不执行的问题...

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

104. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 69%]

js环境下使用Loader加载图片在Sprite对象的.on函数无效 js环境下使用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触...

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

105. 怎么在dialog页面写close函数 [ 69%]

...的api~ Dialog关闭时如何向open他的页面传值? 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 构造函数不能进断点 Laya.loader.create 进度回调函数执行两次 怎么停止正在运行...

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

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

...JS 如:  var atlas:Object[] = [{ url: "res/atlas/choujiang.js", type: Loader.TEXT },                             { url: "res/atlas/choujiang.json", type: Loader.ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this...

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

107. layabox打包apk后加载prefab之后使用pool创建prefab找不到create函数 [ 68%]

...到create函数。问题很好重现。 IED 2.5版本 如果不使用Laya.loader.load加载后创建prefab是没有问题的。  Laya.loader.load(url, Laya.Handler.create(this, function (obj: any) {             let prefab = Laya.Pool.getItemByCreateFun('prefab_' + name, obj.c...

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

108. Panel中添加图片无法显示,文本可以 [ 68%]

...张图片,同样的图片在panel中显示不出来     var t = Laya.loader.getRes("comp/image.png");     var ape1 = new Laya.Sprite();     ape1.graphics.drawTexture(t, 0, 0);     Laya.stage.addChild(ape1);     //面板     var panel = new laya.ui.Panel();     panel.width = 500;   ...

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

109. 在UI类里调用启动类的静态函数失败了 [ 68%]

... constructor() { Laya.init(600, 400); Laya.stage.bgColor = "#123456"; Laya.loader.load([ { url: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onL...

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

110. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 68%]

...Mode="horizontal"; //加载FGUI中的文件 var ProgressBar,resArray; Laya.loader.load([ {url:"res/Public.fui",type:laya.net.Loader.BUFFER}, {url:"res/Public@atlas_ucn9w.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas_ucn90.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas0.png",type...

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