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

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

311. 急急急,如何设置按钮点击加载ani [ 63%]

...资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION);         }                  private function beginLoad():void {             //加载引擎需要的资源             Laya.load...

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

312. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 62%]

...andler = Laya.Handler; class GameMain{ constructor() { Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets.push({ url: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): ...

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

313. 移动端Laya.VideoTexture播放视频纹理会出现卡顿情况~如何解决? [ 62%]

... Date()             console.log("=============>", (dt.getTime() - this.IndexFrame));             this.lbTips.text = this.lbTips.text + " " + (dt.getTime() - this.IndexFrame);             this.IndexFrame = dt.getTime();             if (this.VideoTexture != null)        ...

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

314. 有没有SoundChannel的示例? [ 62%]

...SoundChannel的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isSt...

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

315. 音效无法播放 [ 62%]

...请: 与内容相关的链接 提交 3 个回复 zhouxiaodan 赞同来自: this.musicPath = "res/sound/bg.mp3"; this.soundPath = "res/sound/bianshen.mp3"; 为什么前面加../../就没法播放,去掉../../后就可以播放了呢? 2018-03-07 0 0 分享 微博 QZONE 微信 qian 赞同来自: ...

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

316. Uncaught TypeError: Game.super is not a function [ 62%]

... not a function var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica -...

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

317. Laya 中用什么事件可以检测声音是否播放结束? [ 62%]

...放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效"); SoundManager.playSound("res/sounds/btn.mp3", 1, new Handler(this, onComplete)); }播放声音或音效的第3个参数就是播放...

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

318. 1.7.8新版本3d骨骼动画如何获取绑点呢 [ 62%]

...x 赋值 var nodeMap = animator._avatarNodeMap; for(var attachPointName in this.m_AttachPointNodeMap){ var node = this.m_AttachPointNodeMap[attachPointName]; var srcNode = nodeMap[attachPointName]; node.transform.localMatrix = srcNode.transform().localMatrix; } zfree • 2017-08-21 17:55 我这边...

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

319. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 62%]

...ded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步:...

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

320. parameter 2 is not of type 'WebGLTexture'. [ 62%]

... videoElement.load('res/video/mov_bbb.mp4'); // 添加到舞台 let wrap = this.getChildByName('wrap') as Laya.Box; wrap.addChild(videoElement); // 监听点击事件,开始播放视频 let btn_start = this.getChildByName('btn_start') as Laya.Image; btn_start.on(Laya.Event.CLICK,this,()=>{ // 加...

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