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

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

251. 灯光-方向光 [ 80%]

...ector3(0, -1.0, -1.0); var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var...

来源: Laya_示例 发布时间: 20251130

252. 音频-播放演示 [ 80%]

... onPlaySound() { console.log("播放音效"); Laya.SoundManager.playSound("res/sounds/btn.mp3", 1, new Laya.Handler(this, this.onComplete)); } // 播放音乐 onPlayMusic() { console.log("播放音乐"); Laya.SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Laya.Handler(this, this.onComplete)); }...

来源: Laya2.0_示例 发布时间: 20251130

253. 音频-播放演示 [ 80%]

...nPlayMusic(e) { console.log("播放音乐"); SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } function onPlaySound(e) { console.log("播放音效"); SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Handler(this, onComplete)); } function onComplete() { ...

来源: Laya_示例 发布时间: 20251130

254. soundmananger会重复加载音效好多次 [ 80%]

...个音效会重复加载好多次, 我用的Laya.SoundManager.playSound("res/sound/match.wav", 1, new Handler(this, this.onComplete)); version.json里配置是这样的: "res/sound/Match.wav":"res/sound/Match6888397f.wav" 2018-06-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

255. PBRStandardMaterial材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 80%]

...光滑度贴图。 `normalTexture:BaseTexture` 法线贴图。 `normalTextureScale:Number` 法线贴图缩放系数。 `occlusionTexture:BaseTexture` 遮挡贴图。 `occlusionTextureStrength:Number` 遮挡贴图强度。 `parallaxTexture:BaseTexture` 视差贴图。 `parallaxTextureScale:Number` ...

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

256. VScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 80%]

...llBar { /***垂直滚动条资源**/ private var skins:Array=["../../../../res/ui/vscroll.png", "../../../../res/ui/vscroll$bar.png", "../../../../res/ui/vscroll$down.png", "../../../../res/ui/vscroll$up.png"]; /***提示信息文本框**/ private var promptText:Text; /****垂直滚动条****/ priva...

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

257. HScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 80%]

...llBar { /***水平滚动条资源**/ private var skins:Array=["../../../../res/ui/hscroll.png", "../../../../res/ui/hscroll$bar.png", "../../../../res/ui/hscroll$down.png", "../../../../res/ui/hscroll$up.png"]; /***提示信息文本框**/ private var promptText:Text; /****水平滚动条****/ priva...

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

258. 请问在设计模式下制作的UI页面,到底怎么在代码里使用???官方教程不一样 [ 80%]

...atlas文件,何解???例如官方的例子:Laya.loader.load(["./res/atlas/ListPage.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas     附件 : --> 2017-09-04 添加评论 免...

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

259. laya微信小游戏加载外部素材失败 急急急 [ 80%]

...博 QZONE 微信 a'ゞ莫名奇妙 赞同来自: MyProject/hjkg_0422/bin//res_v1.0/ 我看不到你的工程结构,你可以在res后面多加个/;   2018-04-26 0 1 分享 微博 QZONE 微信 一点一滴 赞同来自: 上传一个demo,我看下具体原因 2018-04-26 0 0 分享 微博 QZONE 微...

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

260. list item 添加事件后无法监听 [ 80%]

...路径 var data = []; for (var i = 0; i < 10; ++i) { data.push("../../res/ui/listskins/1.jpg"); data.push("../../res/ui/listskins/2.jpg"); data.push("../../res/ui/listskins/3.jpg"); data.push("../../res/ui/listskins/4.jpg"); data.push("../../res/ui/listskins/5.jpg"); } list.array = data; }   fun...

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