大约有 965 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0062 秒)
...Move extends Laya.Script { constructor() { super(); } onTriggerEnter() { console.log("111"); } onTriggerStay() { console.log("111"); } onTriggerExit() { console.log("111"); } onEnable() { } onDisable() { } } //这是两个类,直接可以就不会发生触发效果,什么都不输出,还...
来源: Laya_社区 发布时间: 20190314
...} updateListItem(cell: BagItem, index: number):void{ console.log("3333333333333"); if (cell.useBtn.clickHandler == undefined) { cell.useBtn.on("click", this, this.onItemUse, [index]); } } onItemUse(index):void{ ...
来源: Laya_社区 发布时间: 20170310
...MeshSprite3D) == null || !this.isUseOuline){ // console.log('spreite3D node meshSprite3D is null'); return; } var unlitMaterial = new Laya.UnlitMaterial(); unlitMaterial.albedoColor = new Laya...
来源: Laya_社区 发布时间: 20210203
...ish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() function onLoaded()...
来源: Laya_社区 发布时间: 20180315
...ow["qg"].login({ success: function (res) { var data = JSON.stringify(res); console.log("OPPO登录:" + data); callBack(res); }, fail: function (res) { LogicManager.instance.toLoginSucc(); console.log("登陆失败:" + JSON.stringify(res)); } }); 登陆失败:{"code":7605,"msg":"没有 数据","d...
来源: Laya_社区 发布时间: 20190823
... Laya.stage.on(Laya.Event.MOUSE_OUT, this, function(){console.log("mouseout")}); Laya.stage.on(Laya.Event.MOUSE_UP, this, function(){console.log("mouseup")}); mouseup能正常监听到,stage上加的MOUSE_OUT事件,当鼠标移出屏幕时,在浏览...
来源: Laya_社区 发布时间: 20200407
...or(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ``` 这样脚本就添加完成了,我们...
来源: Laya2.0_文档 发布时间: 20210714
...10 }, 1000, Laya.Ease.linearNone, Laya.Handler.create(this, function (p) { console.log(1) }), Laya.Handler.create(this, function (p) { console.log(p) })); 阿琴 • 2018-06-21 17:36 这样写吗?不对呀连console.log(1)都不输出了 阿琴 • 2018-06-21 11:31 static to(target: any, props: an...
来源: Laya_社区 发布时间: 20180621
...程是:https://ldc.layabox.com/doc/?nav=zh-js-7-2-7 if( window.conch ) { console.log("i'm here 1"); window.conch.captureScreen(function(arrayBuff,width,height){ conch.saveAsPng(arrayBuff,width,height,conch.getCachePath()+"/test.png" ); console.log("i'm here 2:" + arrayBuff.byteLength + " " + width +...
来源: Laya_社区 发布时间: 20180305
...tor3 = new Laya.Vector3(0, 0.01, 0); constructor(){ super(); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { (this.owner as Laya.Sprite3D).transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ``` 这样脚本就添加...
来源: Laya2.0_文档 发布时间: 20210715