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

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

711. UI-Clip [ 64%]

...2 + 110; Laya.stage.addChild(controller); } function onClipSwitchState() { if (counter.isPlaying) { counter.stop(); currFrame = counter.index; controller.label = "播放"; } else { counter.play(); counter.index = currFrame; controller.label = "暂停"; } } })();module laya { import Stage = Laya.Stag...

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

712. layacmd命令行问题 [ 64%]

...行有问题吧: 在layaair-cmd模块的layaair-cmd-publish第165行: if (!isAsProj) { var result = UglifyJS.minify([path.join(workspace, "release", "layaweb", versionName, "main.min.js")]); fs.writeFileSync(path.join(workspace, "release", "layaweb&qu...

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

713. 微信小游戏常见问题汇总(10.25更新)(TypeScript-小游戏适配文档-微信小游戏) [ 64%]

...上传就好了。 已知的文件类型白名单为:png、jpg、jpeg、gif、svg、js、json、cer、obj、dae、fbx、mtl、stl、3ds、mp3、pvr、wav、plist、ttf、fnt、gz、ccz、m4a、mp4、bmp、atlas、swf、ani、part、proto、bin、sk、mipmaps、txt、zip、tt、map、ogg、silk、d...

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

714. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 64%]

...ransform.rotation = newRot; .............................................. if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.block.transform.position.y, this.block.transform.position.z); console.log(newPos.x); this.block.transform.p...

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

715. JS进度条加载问题 [ 64%]

...r[1]=pro2; Laya.loader.load(proArr,Laya.Handler.create(this,onProLoaded)); if(Laya.Browser.onAndriod) { Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; } else { Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; } Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDD...

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

716. Sprite-新手引导 [ 64%]

...rite(); Laya.stage.addChild(tipContainer); this.nextStep(); } nextStep() { if (guideStep === guideSteps.length) { Laya.stage.removeChild(guideContainer); Laya.stage.removeChild(tipContainer); return; } let step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y...

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

717. demo中的2d和3d混合 加载ktx的资源 会白色的 其他ui没有问题 [ 64%]

...config){                 var fileversion = Laya.ResourceVersion.manifest[key]||key;                 fileversion = fileversion.replace(".png",".ktx").replace(".jpg",".ktx");                 Laya.ResourceVersion.manifest[key] = fileversion;             }            ...

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

718. 小游戏项目 加载有中文的json文件 报错 [ 64%]

...c var getUrlAndEncode:Function = function(url:String,type:String):String { if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "ascii"; }   2018-06-21 1 1 分享 微博 QZONE 微信 熊猫大侠 赞同来自: 好...

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

719. 音频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...。 */ static setSoundVolume(volume: number, url: string = null): void { if (url) { SoundManager._setVolume(url, volume); } else { SoundManager.soundVolume = volume; for (let i = SoundManager._channels.length - 1; i >= 0; i--) { let channel = SoundManager._channels[i]; if (channel.url != SoundMan...

来源: Laya3.0_文档 发布时间: 20251010

720. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 64%]

...找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 lifereset 赞同来自: laya123 package huamao.layer.ui { import app.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static c...

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