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

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

111. 2d示例项目打包为微信小游戏报错,Cannot read property 'LESS' of null [ 53%]

...rty 'LESS' of null TypeError: Cannot read property 'LESS' of null     at Function.value (http://127.0.0.1:43542/game/li ... :19438)     at Object.value [as init] (http://127.0.0.1:43542/game/li ... 515524)     at new Main (http://127.0.0.1:43542/game/js/bundle.js:267:90)   LESS是LayaGL.insta...

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

112. laya.d3.webxr.core.WebXRCamera_API3.0 [ 53%]

...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...

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

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

...状态下播放背景音乐无效的解决方案  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

114. 我照着例子做的换装例子切换不了卡槽的图片,附件为我的demo,请帮忙看看 [ 53%]

...-01 0 0 分享 微博 QZONE 微信 qian 赞同来自: 用最新版的引擎function changeAction(){//debugger;    if(tActionID%2 == 0)    {        skeleton0.replaceSlotSkinName("head", "h1-tou5", "robotFolder/head");    }    else    {        skeleton0.replaceSlotSkinName...

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

115. LayaAirIDE2.7版本导出类名不正确问题 [ 53%]

...以看到只在window上挂载了大写Laya的命名空间 window.Laya= (function (exports) { ...... exports.Sprite = Sprite; exports.EffectAnimation = EffectAnimation; ..... return exports; })({}))那么出现这个问题的原因是官方在LayaAirIDE类导出部分的代码有变化,在2.6版...

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

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

...父窗口被聚焦),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

117. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 49%]

...频都不显示了。     下面是 创建视频的主要代码 private function initVideo():void { // TODO Auto Generated method stub // 创建Video元素 var div:* = Browser.createElement("div"); div.setAttribute("id", "videobox"); Browser.document.body.appendChild(div); // var canvas:* = Brows...

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

118. laya.events.Event_API3.0 [ 49%]

...ss with type parameter Constructor Property Method Object literal Variable Function Type alias Static property Static method Enumeration Interface

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

119. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 45%]

...的。 /** *指定显示对象 *@param index */ __proto.showDisplayByIndex=function(index){ if (this._replaceDic[index]) index=this._replaceDic[index]; if (this.currSlotData && index >-1 && index < this.currSlotData.displayArr.length){ this.displayIndex=index; this.currDisplayD...

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

120. laya打包iOS,运行奔溃,构建时候选择的是2.3.0 [ 45%]

...: exception info:[TypeError: this._nativeObj.addGlobalValueDefine is not a function.(In "this._nativeObj.addGlobal ValueDefine(modifyType, type, size, defaultData)", "this._nativeObj.addGlobalValueDefine" is undefined)] at line  4664. 附件 : --> 2020-02-18 添加评论 免费帖 --> 分享 微博...

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