大约有 596 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
...w.wxMiniGame = function (exports, Laya) { 'use strict'; function DEB(str){ console.debug("[res]"+str); } class MiniFileMgr { static isLocalNativeFile(url) { for (var i = 0, sz = MiniAdpter.nativefiles.length; i < sz; i++) { if (url.indexOf(MiniAdpter.nativefiles[i]) != -1) return true; ...
来源: Laya_社区 发布时间: 20200103
...mg/popular.png", 0, 0, 0, 0, Laya.Handler.create(this, function (a1, a2) { console.log(a1, a2); }), [100]); 为什么不能把Laya.Hander.create后面带的这个参数传到Function里面? 附件 : --> 2018-06-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20180621
...e.runNodeScript(node.id, node.getComponent("MyScript").id, "test", "abc"); console.log(ret); 3、自定义一个函数,并执行。例如: //下面是场景进程的代码 //注意:IEditorEnv.regClass是必须的 @IEditorEnv.regClass() export class TestSceneScript { //注意:this是当前的...
来源: Laya3.0_文档 发布时间: 20251010
... super(); } public onAwake():void{ console.log(1111); } } 2.继承Sprite 执行后会有onAwake let t = new tt(); Laya.Scene.root.addChild(t); } } //激活启动类 new Main(); class tt extends Laya.Sprite{ ...
来源: Laya_社区 发布时间: 20190701
...链接 提交 1 个回复 cuixueying 赞同来自: 1、你的写法是: console.log("this.roleName.indexOf(this.shieldArray):" + this.roleName.indexOf(this.shieldArray));其中: this.roleName为"暗诗炎舞" this.shieldArray为“” 运行:"暗诗炎舞".indexOf(""),,当没有写任何...
来源: Laya_社区 发布时间: 20170828
...ay,this.enemyHit)) { console.log("enemyHit->",this.enemyHit); var _enemy=this.enemyHit.collider.owner as Laya.Sprite3D; if(_enemy.layer==6) { ...
来源: Laya_社区 发布时间: 20231120
...false); 我可以看到模型transform.rotation值的变化, console.log(this.needle.transform.rotation); 但是,我查看 console.log(this.needle.transform.rotationEuler); 却是却是 undefined。 2017-12-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20171206
...以嘛 2018-04-16 0 0 分享 微博 QZONE 微信 Apple 赞同来自: 建议console.log(Laya.Browser.window) 然后去开发者模式看下这里面有没有对应的属性,有的话就可以用。 2018-04-16 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...
来源: Laya_社区 发布时间: 20180416
...me/__ ... :13718) at http://127.0.0.1:37684/game/gamePage.html:152:5 console.error errorReport @ WAGame.js:3 thirdErrorReport @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ WAGame.js:9 (anonymous) @ WAGame.js:4 a @ gamePage.html:1 window.onerror VM123:3 Thu May 24 2018 11:28:22 GMT+0800...
来源: Laya_社区 发布时间: 20180524
...0, 500, WebGL); Laya.stage.bgColor = "#ffffff"; console.log(Laya.Render._mainCanvas); Laya.Render._mainCanvas.source.style.top = "50px"; this.setup(); const parent = document.getElementById("preview"); const child = document.g...
来源: Laya_社区 发布时间: 20201130