大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0056 秒)
...e.screenMode = "horizontal"; Laya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.removeSelf(); Laya.Pool.recover("sg_sign",Laya....
来源: Laya_社区 发布时间: 20170725
...:import test = ui.test.TestPageUI; import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE...
来源: Laya_社区 发布时间: 20170720
...x = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "正常模式")); changeActionButton.size(160, 40); cha...
来源: Laya_社区 发布时间: 20171127
...open(url: string, closeOther: boolean = true, param: any = null, complete: Handler = null, progress: Handler = null): Promise<Scene> { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [closeOther, complete, param]), progress); } (图2-1) 例如创...
来源: Laya3.0_文档 发布时间: 20251010
...new Laya.Skeleton(); tmpSpine.load("spineFile/6402.sk",Laya.Handler.create(this,()=>{ tmpSpine.showSkinByIndex(2);//皮肤ID:1,2 tmpSpine.play("idea",true); }),1); tmpSpine.x = 365; tmpSp...
来源: Laya_社区 发布时间: 20200318
...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
... /**加载资源*/ Laya.loader.load(skins,Handler.create(this,loadComplete)); 2017-03-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 相关问题 加载到舞台的3D模型不显示贴图 laya2.0加载3d场景报...
来源: Laya_社区 发布时间: 20170320
...文件Image.json Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:...
来源: Laya2.0_文档 发布时间: 20210714
...,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selec...
来源: Laya2.0_文档 发布时间: 20210714
...rl = "https://lupic.cdn.bcebos.com/2 ... 3B%3B Laya.loader.load(_url, Laya.Handler.create(this, res => { let a = new Laya.Image(_url); Laya.stage.addChild(a); })) 以下是安卓层面输出日志:09-22 11:08:10.811 27895-28111/? D/jswrapper: JS: [WARN]: [warn]Retry to load: https://lupic.cdn.b...
来源: Laya_社区 发布时间: 20200922