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

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

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

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

412. 1整天了,还是没解决加载本地文件问题 [ 63%]

...ile:///E:/layabox/layaair-doc-master/project/AS3/AirWar/lesson8/bin/h5/res/atlas/gameUI.atlas. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. 另外 LayaIDE 编译打开经常只有黑屏,或者: 未定义任何生成任务。使用 "i...

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

413. 提示资源重复加载 [ 63%]

...this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this...

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

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

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

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

...了 } } // 程序入口 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

416. ToolTip鼠标悬停的使用 [ 63%]

...width,Browser.height); Laya.stage.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya.init后去new实例,不可直接在全局变量处实例化 //切记,无...

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

417. list里面可以加入多个view吗? [ 63%]

...width,Browser.height); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=Item; list.repeatX=1; list.repeatY=6; list.x=((Laya.stage.wid...

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

418. drawcall优化问题 [ 62%]

...1094 关注: 5 人 jacksing888 • 2018-01-22 23:37 Laya.loader.load( 'res/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; rol...

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

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

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

420. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 62%]

..._sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni(...

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