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

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

801. 如何获取微信小游戏 关系链文档中提到的上屏? [ 71%]

...window.canvas.getContext('2d') 报错: Cannot set property '__proto__' of null TypeError: Cannot set property '__proto__' of null     at HTMLCanvasElement.n.getContext (http://127.0.0.1:51595/game/__ ... :23503)     at LayaUISample.__proto.drawfriendicon ( 2018-03-26 0 1 分享 微博 QZONE 微...

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

802. 如果强制关闭浏览器窗口?下面的代码没有效果 [ 71%]

...gator.userAgent.indexOf("MSIE 6.0") > 0) { Laya.Browser.window.opener = null; Laya.Browser.window.close(); } else { Laya.Browser.window.open('', '_top'); Laya.Browser.window.top.close(); } } else if (navigator.userAgent.indexOf("Firefox") > 0) { Laya.Browser.window.location.href = 'about:blank...

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

803. laya.d3.core.light.LightSprite_API3.0 [ 71%]

...的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in laya/display/Node.ts:609 清理定时器。功能同Laya.ti...

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

804. laya.net.ResourceVersion [ 71%]

...源管理。因此没有资源管理文件时,可以设置manifestFile为null或者不存在的路径。 ResourceVersionPublic Constants ConstantDefined By  FILENAME_VERSION : int = 2[static] 基于文件名映射管理方式(新版本IDE默认类型)ResourceVersion  FOLDER_VERSION : int ...

来源: Laya2.0_api 发布时间: 20190513

805. 发布之后报错,跨域问题 [ 71%]

...nts/saolei/release/layaweb/v1.0.0/comp/classic_numbers_8.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access. 2018-03-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

806. 资源内存释放问题 [ 71%]

...source = Laya.loader.getRes(dPath);                 // if (null != resource) {                 //  resource.dispose();                 // } else {                 //  console.error("resources is null,path:{0}", dPath);        ...

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

807. 网络和格式-POST [ 71%]

...n"; Laya.stage.addChild(logger); } private function onHttpRequestError(e:*=null):void { trace(e); } private function onHttpRequestProgress(e:*=null):void { trace(e) } private function onHttpRequestComplete(e:*=null):void { logger.text += "收到数据:" + hr.data; } } }

来源: Laya_示例 发布时间: 20251219

808. [LayaAir3]调用VideoNode destory的时候是不是肯定会报错? [ 71%]

...如下图 _checkCachAs源码 每次调destory 会将videoTexture设置成null,然后会调_checkCachAs,videoTexture==null肯定会报错吧 我用的laya版本是3.1.5的 附件 : --> 2024-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

809. 横竖屏切换,此引擎渲染有BUG [ 71%]

...ldheight: number = 0; HengPing(isFirst: boolean): void { if (Laya.stage != null) { this.oldWith = Laya.Browser.clientWidth; this.oldheight= Laya.Browser.clientHeight; }  console.log("设置横屏" + isFirst); if (isFirst) Laya3D.init(1280, 720, true); else Laya.stage.width = 1280; Laya.stage.height...

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

810. laya.ani.AnimationPlayer [ 71%]

...个 AnimationPlayer 实例。 AnimationPlayer event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher isMouseEvent(type:String):Boolean 检测指...

来源: Laya2.0_api 发布时间: 20190513