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

大约有 215 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)

51. timer无法用clear清除的BUG [ 76%]

...p函数用this绑定时,clear无法清除 ,clearAll可以清除 public function startLoop() {       Laya.timer.loop(2000,this,this.onLoop.bind(this)); }   private function onLoop():void {     if(this.stop){         Laya.timer.clear(this,this.onLoop.bind(this));  //     } } ...

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

52. 个人笔记:失焦或静音状态下播放背景音乐无效的解决方案 [ 76%]

...状态下播放背景音乐无效的解决方案  SoundManager.playSound=function(url,loops,complete,soundClass,startTime){ (loops===void 0)&& (loops=1); (startTime===void 0)&& (startTime=0); if(!url) return null; SoundManager._recoverWebAudio(); url=URL.formatURL(url); if (url!=Sou...

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

53. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 76%]

...父窗口被聚焦),playMusic背景音乐播放无声音 public static function playSound(url:String, loops:int = 1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recover...

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

54. 摄像机lookAt如何围绕一个模型做Tween动画? [ 75%]

...绕一个模型做Tween动画? var y = 1; Laya.timer.frameLoop(30, this, function () { y = y + 1; camera.transform.lookAt(model.transform.position, new Laya.Vector3(0, 1, 0), false); camera.transform.rotate(new Laya.Vector3(0, y, 3), false, false); }); 我想让摄像机围绕一个模型旋转做...

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

55. 微信小游戏加载资源问题 [ 75%]

...分享一下呢? vvv123 • 2020-01-07 17:25 @星夜:window.wxMiniGame = function (exports, Laya) { 'use strict'; function DEB(str){ console.debug("[res]"+str); } class MiniFileMgr { static isLocalNativeFile(url) { for (var i = 0, sz = MiniAdpter.nativefiles.length; i < sz; i++) { if (u...

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

56. https://ask.layabox.com/question/13181官方Demo运行不起来 [ 75%]

...tps://ask.layabox.com/question/13181官方Demo运行不起来 wx.onMessage(function(message){ console.log(message); if (message.type && message.type == "wxxx") { //通过接收主域的消息来设置开发数据域的画布大小跟矩阵信息 sharedCanvas.width = message.width; sharedCanv...

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

57. TypeError: Cannot read property '_byteLength' of null [ 75%]

...打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function TypeError: Laya.Browser.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError...

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

58. laya.media.Sound_API3.0 [ 75%]

...ameters url: string 地址。 Returns void off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

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

59. IBQuadrangle 错误,在线等... [ 75%]

...线等... Uncaught Error: IBQuadrangle count:16526 must<:16383     at Function.GlUtils.fillIBQuadrangle      at Function.GlUtils.expandIBQuadrangle     at WebGLContext2D.__proto.flush      at RenderContext.__proto.flush      at Stage.__proto.render      at Stage.__proto._loop   ...

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

60. TimeLine调用destroy报错&执行完成后回到起点 [ 75%]

..._proto._loop (HMain.max.js:16892) at loop (HMain.max.js:5472)    private function createTimerLine():void { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0) .ad...

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