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

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

211. debugtool调试报错了 [ 73%]

...ugtool调试报错了 Uncaught TypeError: sprite._getBoundPointsM is not a function     at Function.showDisBound (laya.debugtool.js:3365)     at dhtmlXTreeObject.<anonymous> (laya.debugtool.js:4840)     at dhtmlXTreeObject.e.callEvent (eval at init (laya.debugtool.js:4050), <anonymous...

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

212. laya.d3.webxr.core.WebXRInput_API3.0 [ 73%]

...AxisEvent addAxisEvent(index: number, type: string, caller: any, listener: Function): void Defined in laya/d3/WebXR/core/WebXRInput.ts:164 add axis event Parameters index: number axis索引 type: string 事件类型 caller: any 事件侦听函数的执行域。 listener: Function 事件侦听函数...

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

213. laya.d3.webxr.core.WebXRSessionManager_API3.0 [ 73%]

...lves to true if supported and false if not 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

214. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 73%]

...测到碰撞信息后删除对方。 PlayerMove.prototype.onTriggerStay = function (other) { this.tsizex = this.box._components[0]._transformOrientedBoundBox.extents.x; this.tsizez = this.box._components[0]._transformOrientedBoundBox.extents.z; this.osizex = other._transformOrientedBoundBox.extents....

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

215. 2.0版本 ios浏览器旋转,会导致适配出现问题,无法旋转回来 [ 73%]

...Width=false; var windowOnWidth=true; var isIos=true; window.top.onresize = function () { var u = navigator.userAgent; if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) { isIos=false; }else if(!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)){ isIos=true; } var windowWidth=true; if(window.doc...

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

216. 微信小游戏编译报错 [ 73%]

...11:56:05 WAGame.js:4 gameThirdScriptError document.createTextNode is not a function TypeError: document.createTextNode is not a function at u (http://127.0.0.1:23181/game/code.js:10:31792) at s (http://127.0.0.1:23181/game/code.js:10:31291) at n (http://127.0.0.1:23181/game/code.js:10:30084) at e.ex...

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

217. Laya.Tween.to 有没有监听值的变化的方法? [ 73%]

...@return  返回Tween对象。          */         public function to(target:*, props:Object, duration:int, ease:Function = null, complete:Handler = null, delay:int = 0, coverBefore:Boolean = false):Tween {             return _create(target, props, duration, ease, comple...

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

218. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 73%]

...是出现 ProgressBar is not a constructor //动态加载js文件--my.js function loadJs(jspath,defer = true) { //得到html的头部dom // var theHead = document.getElementsByTagName('head').item(0); var theHead = document.getElementsByTagName('body').item(0); //创建脚本的dom对象实例 var m...

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

219. 如何使用类似AS库打包的方式来分包 [ 73%]

...ork { /*[COMPILER OPTIONS:ForcedCompile]*/ public class Framework { public function Framework() { } } }package cn.ztgames.st.Framework { public class CLassA { public function CLassA() { } } }分包文件内容:(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__...

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

220. 微信小游戏,请先初始化小游戏适配库 [ 73%]

...@ gamePage.html:156 WAGame.js:3 gameThirdScriptError window.focus is not a function TypeError: window.focus is not a function     at Function.Browser.__init__ (http://127.0.0.1:51176/game/code.js:7140:21)     at Function._$GET_clientWidth (http://127.0.0.1:51176/game/code.js:7057:11)     at ht...

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