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

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

721. Unlit材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 60%]

.../加载纹理 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1)

来源: Laya2.0_文档 发布时间: 20210714

722. Unlit材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 60%]

.../加载纹理 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture){ //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1)

来源: Laya2.0_文档 发布时间: 20210715

723. 如何判断加载资源是否成功? [ 60%]

...加载资源是否成功? Laya.loader.load(["res/book00"+2+".txt"], Laya.Handler.create(this, onLoaded(i))) 2018-04-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: Laya.loader.load配合 ...

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

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

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

725. 微信小游戏开放域(ActionScript-小游戏适配文档-微信小游戏) [ 60%]

...json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Handler.create(this,function(){ //加载完成 //使用接口将图集透传到子域 MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 MiniAdpter.sendJsonDataToDataContext...

来源: Laya2.0_文档 发布时间: 20210715

726. 背景音乐播放问题 [ 59%]

....playMusic("res/audio/Music/angelaTheme1-1_SFX_OGGSTREAM.mp3", 1, new Laya.Handler(this, this.onComplete)); 2018-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 你没有说版本,...

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

727. laya.ui.ComboBox_API3.0 [ 59%]

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

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

728. 被遮罩的对象的子显示对象再添加遮罩,子显示对象的遮罩显示不正确 [ 59%]

....img.mask = imgMask; Laya.Tween.to(this.img, {x:100}, 10000).update = Laya.Handler.create(this, this.updateMsk, null, false); } private updateMsk():void { this.img.mask.graphics.clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffffff"); } 附件 : --> LayaTest...

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

729. Sprite3D的克隆(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 59%]

...ya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMo...

来源: Laya2.0_文档 发布时间: 20210714

730. 物体穿过平面后3d场景消失变黑屏 [ 59%]

...出现这种情况)     Laya.Texture2D.load("res/skin/2.jpg",new Laya.Handler(this,this.loadfinish));//加载贴图 loadfinish(tex){ var mat=new Laya.UnlitMaterial();//创建材质 mat.albedoTexture=tex;//给材质添加贴图 //mat.albedoColorA = 0.5; //透明度 // mat.blend = Laya.RenderState...

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