大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0068 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(42) Laya2.0_api(13) laya_api(12)
...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.selectHandler ...
来源: Laya2.0_文档 发布时间: 20210714
...(); camera.sky=skyDome; Laya.BaseMaterial.load("res/env.png", Laya.Handler.create(null, function(mat) { console.log(camera); //执行到了这里,显示了camera中的sky存在 //camera.sky = mat; //就算这里赋值也没用 })) ========执行的结果就是不报错也没反应 console.log(came...
来源: Laya_社区 发布时间: 20181203
...,你可以采用new Laya.Handler的方式,也可以采用Laya.Handler.create(this,this.回调,null,false); 最后一个参数设置成false的意思就是用一次不回收,一直存在。感觉你Handler出问题应该是这个原因导致的。 2021-07-01 0 1 分享 微博 QZONE 微信 156**...
来源: Laya_社区 发布时间: 20210701
...弹出界面中:Key store path 有就选已有的,没有点下面的Create new 4.1.1 弹出界面中:Key store path 填好记住即可(.jsk后缀),其他的随意 4.2 Next,APK Destination Folder 路径记住,Build Type 选 release 4.3 Finish,坐等编...
来源: Laya_社区 发布时间: 20180816
...布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","label");//创建一个 Button 类的实例对象...
来源: Laya3.0_api 发布时间: 20231115
...手机加载失败,其他手机加载没问题。 使用Laya.loader.create() 加载所有3D资源时加载到20%的时候停止不动了,原来版本没有问题,现在版本vivo x7等机型有问题,小米华为等机型没有问题。模型已经上传到附件了,大神帮忙看...
来源: Laya_社区 发布时间: 20181214
...onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.sel...
来源: Laya2.0_文档 发布时间: 20210715
...后,执行onLoad回调方法 Laya.loader.load([skin1,skin2],Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个CheckBox实例cb1 var cb1 = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位置 cb1.pos(300,200); //...
来源: Laya2.0_文档 发布时间: 20210715
... 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); changeAction...
来源: Laya_社区 发布时间: 20171127
..."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._initView(); } p...
来源: Laya_社区 发布时间: 20180308