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

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

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

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

1522. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 42%]

...(); 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

1523. Timer Handler被覆盖 [ 41%]

...,你可以采用new Laya.Handler的方式,也可以采用Laya.Handler.create(this,this.回调,null,false); 最后一个参数设置成false的意思就是用一次不回收,一直存在。感觉你Handler出问题应该是这个原因导致的。 2021-07-01 0 1 分享 微博 QZONE 微信 156**...

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

1524. 攻略贴:打包apk完整流程记录(单机版) [ 41%]

...弹出界面中: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

1525. laya.ui.Button_API3.0 [ 41%]

...布的背景颜色。 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

1526. 版本从1.7.11更新到1.8.0beta后原来的3D模型vivo x7等几款手机加载失败,其他手机加载没问题。 [ 41%]

...手机加载失败,其他手机加载没问题。   使用Laya.loader.create() 加载所有3D资源时加载到20%的时候停止不动了,原来版本没有问题,现在版本vivo x7等机型有问题,小米华为等机型没有问题。模型已经上传到附件了,大神帮忙看...

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

1527. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 41%]

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

1528. CheckBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 41%]

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

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

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

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

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