大约有 622 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)
...后失效。是因为什么? Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); function monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) { let x = accelerationIncludingGravity.x; let y = accelerationIncludingGravity....
来源: Laya_社区 发布时间: 20180322
...邀请: 与内容相关的链接 提交 2 个回复 大林 赞同来自: this.gl = laya.webgl.WebGL.mainContext; if (!this.gl) { throw new Error('Failed to get WebGL Context'); } gl的context取不到,为空。webgl的支持也显示为false 2018-09-10 0 0 分享 微博 QZONE 微信 皓雪树青 ...
来源: Laya_社区 发布时间: 20180910
...续流程 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION);4-在成功回调中加载场景 onVersionLoaded(): void { //激活大小图映射,加载小图的时候,如果发现小图在大图合集里面,则优...
来源: Laya_社区 发布时间: 20191130
...运行效果与调试效果不一致(sprite,child) Laya.timer.frameLoop(1,this,this.run()); public run():void{ var childs:Array<Laya.Sprite> = this._childs; childs.sort(this.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{ return left.y-right.y; } ...
来源: Laya_社区 发布时间: 20180228
销毁 new 出的带有 PhysicsCollider 的正方体模型报错 this.box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))) as Laya.MeshSprite3D; this.box.addComponent(Laya.PhysicsCollider); this.box.destroy();引擎版本 LayaAirIDE2.0_beta.5 报错: Uncaught TypeError: Cannot r...
来源: Laya_社区 发布时间: 20190118
...节点被添加到舞台后 onEnable(): void { let a = this.owner.getChildByName("Sprite3D") as Laya.Sprite3D; console.log(a,typeof(a)) let aa = a.addComponent(Laya.Rigidbody3D); } 报错 TypeError: Cannot read properties of undefined (reading &...
来源: Laya_社区 发布时间: 20240102
... 186*****260 赞同来自: Rickshao 、qq771472501 Laya.timer.once(4000,this,function(){ console.log(Browser.window.sharedCanvas) var rankTexture=new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange=true; console.log(rankTexture) LayaUISampl...
来源: Laya_社区 发布时间: 20180310
...ength')] at line 338.然后我根据朋友的提示,把laya.core.js里的this._testWord改成了Text._testWord,然后重新编译构建,但结果还是报这个错,请问应该怎么办呢?谢谢 陌熙 黯夜 • 2019-09-28 20:03 有人回答了呢,而且这问题也已经解决了,嘻...
来源: Laya_社区 发布时间: 20190829
...压缩就报这个错,版本1.7.6laya.ui.min.js:1 Uncaught TypeError: this.preinitialize is not a function at i (laya.ui.min.js:1) at i (laya.ui.min.js:1) at i (laya.ui.min.js:2) at mainUI (layaUI.max.all.js:14) at Function.<anonymous> (laya.core.min.js:1) ...
来源: Laya_社区 发布时间: 20170809
...目 LoaderPolicy.setup(URLResolver.solvePath("files.fst?"), Handler.create(this, function xload() : void { //无法播放 Laya.loader.load(URLResolver.solvePath("config.xml"), Handler.create(this, onConfigLoaded), null, Loader.XML); //直接调用可以正常播放 //onConfigLoaded(null); })); ...
来源: Laya_社区 发布时间: 20171115