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

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

791. TypeScript 泛形方法如何传TYPE? [ 71%]

...ator = node._childs[index].getComponentByType(Laya.Animator); if (element!=null) { return element; }else this.GetComponetInChild(node._childs[index],);   } } 如何写成泛型方法呢???编译不通过 GetComponetInChild<T>(node:laya.display.Node):T { // var s:=typeof(Laya.Animator); for ...

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

792. Cannot read property 'rayCast' of undefined [ 71%]

...ya.Stage.SCREEN_NONE; //2.设置舞台背景色为空 Laya.stage.bgColor = null; this.scene = new Laya.Scene3D(); this.camera = new Laya.Camera(0, 0.1, 100); Laya.stage.addChild(this.scene); this.scene.addChild(this.camera); this.camera.transform.translate(new Laya.Vector3(0, 3.5, 1)); this.camera.t...

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

793. protobuf.js 转小游戏 动态生成方法报错 [ 71%]

...微信小游戏禁用了Function,这个怎么解决?  Function.apply(null, keys.concat("return " + source)).apply(null, keys.map(function (key) { return scope[key]; })); 2018-01-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

794. Layabox web 复制一段文字到剪贴板 [ 71%]

...AppConfirm = document.getElementById("AppConfirm"); if (this.AppConfirm == null) { this.AppConfirm = document.createElement("div"); document.body.appendChild(this.AppConfirm); this.AppConfirm.id = "AppConfirm"; }  this.modlueDiv = document.getElementById("modlue"); if (this.modlueDiv == null) { thi...

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

795. 发布原生 ios/android 的渲染问题 [ 71%]

...会播报这个   JSCallbackFuncObj::addCallbackFunc error m_vFunc[1] != NULL JSCallbackFuncObj::addCallbackFunc error m_vFunc[2] != NULL    我排查了很久在xcode里面发现如下的代码 我不知道引擎 在渲染这块进行了什么操作,我个人认为是不是 app渲染问题进...

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

796. 鼠标交互-键盘交互 [ 71%]

..., this, onKeyUp); } /**键盘按下处理*/ private function onKeyDown(e:*=null):void { keyDownList[e["keyCode"]] = true; } /**键盘抬起处理*/ private function onKeyUp(e:*=null):void { delete keyDownList[e["keyCode"]]; } private function keyboardInspector(e:*=null):void { var numKeyDown:int = k...

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

797. 连续读取多个本地json文件 [ 71%]

...oad("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON); } //读取商店等级配置表 shopJsonLoaded( ) { let json = Laya.loader.getRes("Json/shop...

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

798. laya.display.Node_API3.0 [ 71%]

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

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

799. 关于LayaAir 2.1.0beta 版本引擎Texture.getPixels在LayaNative上面的报错 [ 71%]

...题了,上个版本报错信息是获取像素值的时候rgba数组是null,这次的报错是_nativeObj是null,麻烦官方给看下,这个接口急用,如有解决办法请直接回复我可以自己改。我把上个版本的报错和这个版本的报错信息都发在附件中了。 ...

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

800. 自己创建的box作为tab,为啥没有点击事件啊? [ 71%]

..."res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyPage2UI);     var UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.super(this);     this...

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