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

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

421. 请问UI之间的场景切换要怎么写 [ 53%]

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

422. UI加载完成后无法获取控件的大小——超详细版问题 [ 53%]

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

423. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 53%]

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

424. 场景管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

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

425. 通过Spine工具导出缩小了比例,游戏中显示部分节点坐标比例出错 [ 53%]

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

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

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

427. 按钮加载皮肤丢失 [ 53%]

...       /**加载资源*/             Laya.loader.load(skins,Handler.create(this,loadComplete)); 2017-03-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 相关问题 加载到舞台的3D模型不显示贴图 laya2.0加载3d场景报...

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

428. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 53%]

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

429. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 53%]

...,执行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

430. Laya.load在OPPO小游戏端无法加载带有不安全字符的图片网址 [ 52%]

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