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

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

341. 在layabox里protobuf只能用回调的方式处理吗? [ 60%]

...包吗? 请问 3D shader 预编译,需要怎么处理? Laya.Handler.create 回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 官方技术文档里:微信小游戏进阶处理,AS3,TS,JS并不相同,请问关于AS3的wxlocal白名单文件适用于JS...

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

342. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 60%]

...der.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image = new Laya.Image(); imgMask.skin = img.skin; imgM...

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

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

...Loader.ATLAS },         ];         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

344. 异步加载一个UI对象时的问题 [ 60%]

...象,但是UI本身的加载是异步的。因此我将load方法放到了createChildren函数里面去。 class MyView extends ui.view.MyViewUI { constructor() { super(); } createChildren():void { super.createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { ur...

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

345. 分享:如何用代码创建自定义Tab组件 [ 60%]

...n的资源,用于tab的项皮肤 Laya.loader.load("button-4.png",Handler.create(this,onLoaded)); } private function onLoaded():void { //添加tab容器 var tab:Tab=new Tab(); Laya.stage.addChild(tab); for(var i:int=0;i<6;i++)//为tab容器添加button { var btn:Button=new Button(); btn.skin="bu...

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

346. 3d导入粒子效果报错 [ 60%]

...source/Texture/MapGrid.psd) extension with: psd. at LoaderManager.__proto._create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13120:11) at LoaderManager.__proto.create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13088:10) at Loader.Laya3D._onMaterilLmatLoaded (file:...

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

347. TileMap有明显的bug [ 60%]

...前面。   该bug尝试了2.0,依旧存在。   该bug尝试了cocoscreator引擎,cocoscreator不会发生这个bug。   附上测试的代码(javascript):var WebGL = laya.webgl.WebGL; Laya.init(1920, 1080, WebGL); function _OnMapCreate() { console.log("map create ..."); } var viewRect...

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

348. 分享:如何使用IDE创建的动画.ani文件进行显示! [ 60%]

...需要用到的资源 Laya.loader.load("res/atlas/fly.json", Laya.Handler.create(this, onAssetLoaded), null, Laya.Loader.ATLAS); function onAssetLoaded() { var ani=new Laya.Animation();//创建animation实例 ani.loadAnimation('Ani.ani');//加载IDE制作的动画 Laya.stage.addChild(ani);//显示...

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

349. 以前问题的进度咨询 [ 60%]

...PS的一些问题咨询! 想将以前的页游项目转成h5 Laya.loader.create 进度回调函数执行两次 drawTexture 画出来的数据会有以前的数据 问题状态 最新活动: 2017-07-18 10:10 浏览: 706 关注: 2 人

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

350. 关于位图字体 [ 60%]

...字体 是这样注册,吗 Laya.loader.load("res/font.fnt", Laya.Handler.create(this, this.onLoaded),null,Laya.Loader.FONT);   应该没什么问题了,就是这样的           附件 : --> 2017-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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