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

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

461. 加载的nativeimage处理 [ 58%]

... 3 个回复 cuixueying 赞同来自: { Laya.loader.load("ui/image.png", Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var texture:Texture=Loader.getRes("ui/image.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture); Laya.stage.addCh...

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

462. Loader.BUFFER的问题 [ 58%]

...行解压,采用的是以下语句: Laya.loader.load("config.zip", Laya.Handler.create(this, this.configLoaded,["config.zip"]), null, Laya.Loader.BUFFER, 1, true)   private configLoaded(url):void {     var data:Object = Laya.loader.getRes(url);     console.log(data)     var e = new Zlib.Inf...

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

463. Templet资源删除不掉 [ 58%]

...ype:Loader.BUFFER });             //   Laya.loader.load(assets, Handler.create(this, onAssetLoaded));             onAssetLoaded();         } 顺便问一下 你们的对于小图加载会自动加入大图集中去,一张满了就再加一张,这个大图集的重建是...

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

464. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 58%]

...Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则没有问题,否则会导致显示异常...

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

465. laya.ui.Tab_API3.0 [ 58%]

...建了一个 Tab 实例。 package { import laya.ui.Tab; import laya.utils.Handler; public class Tab_Example { public function Tab_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], H...

来源: Laya3.0_api 发布时间: 20231115

466. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 57%]

...           {                 Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded))             }         }         private function onAssetLoaded(texture:Texture):void         {             var ape:Sprite = new Sprite;          ...

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

467. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 57%]

...sh({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initVie...

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

468. drawcall优化问题 [ 57%]

... 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; role.y = y; role.load...

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

469. 提示 is not function [ 57%]

...可以赋值的方法后面增加上".bind(this)",或者回调方法用Handler.create(this,你的回调方法)。两种方法都可以解决你的问题! 2017-02-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 orecle 相关问题 T...

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

470. laya.ui.ColorPicker_API3.0 [ 57%]

...orPicker 实例。 package { import laya.ui.ColorPicker; import laya.utils.Handler; public class ColorPicker_Example { public function ColorPicker_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/...

来源: Laya3.0_api 发布时间: 20231115