大约有 215 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0042 秒)
Laya_社区(139) Laya3.0_api(21) laya_api(14) Laya2.0_api(14) Laya2.0_文档(11) Laya_示例(6) Laya3.0_文档(5) Laya2.0_示例(5)
...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
...状态下播放背景音乐无效的解决方案 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
...父窗口被聚焦),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
...绕一个模型做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
...分享一下呢? 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
...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
...打出的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
...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
...线等... 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
..._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