大约有 127 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
...方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); }; onTriggerStay(other){ console.log("onTriggerStay"); }; onCollisionEnter(other){ console.log("onCollisionEnter"); }; onCollisionStay(collision){ console.log("onCollisionStay"); } } 附...
来源: Laya_社区 发布时间: 20191215
...moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.v...
来源: Laya_社区 发布时间: 20171108
...ion; if(other.label === "heng"){ console.log("角度"+this.owner.rotation); this.owner.rotation=180-n; console.log("角度"+this.owner.rotation); } if(other.label === "shu"){...
来源: Laya_社区 发布时间: 20200817
...d, { silent: true, shell: true, }); _gulp.stdout.on('data', (data) => { console.log(`${data}`); }); _gulp.stderr.on('data', (data) => { console.log(`${data}`); }); _gulp.on('close', (code) => { console.log(`exit:${code}`); }); b)、创建并编写脚本 tools-publish.js#!/usr/bin/env n...
来源: Laya_社区 发布时间: 20201223
... this.state_ = EConnectionState.eConnected; console.log("conect to 127.0.0.1"); } protected _onMessage(msg: any): void { super._onMessage(msg); console.log("receve msg : "); console.log(msg); ...
来源: Laya_社区 发布时间: 20170602
...LayaAir 2.0 模糊滤镜与发光滤镜找不到 我再代码里面打印: console.log(Laya.GlowFilter); console.log(Laya.ColorFilter); console.log(Laya.BlurFilter); 只有ColorFilter能找到,其它都是undefine 2019-03-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20190304
...tageHeight = Laya.Browser.clientHeight; if (stageWidth < stageHeight) { console.log("one", Laya.stage.scaleMode) Laya.stage.scaleMode = Laya.Stage.SCALE_NOSCALE; //1 console.log("one1", Laya.stage.scaleMode) } else { console.log("two", Laya.stage.scaleMode) Laya.stage.scaleMode = Laya.Stage.SCALE...
来源: Laya_社区 发布时间: 20170920
... var asset:Image = assets; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调用清理方法 Laya.loader.clearRes(asset); //查看log,清理后,资源被卸载 console.log(Laya.loader.getRes(asset)); sp.destroy(); 这些都测试过,没有消减 curme...
来源: Laya_社区 发布时间: 20180622
...{ com} from "../libs/protobuf/area.js"; export function testProto():void { console.log("call testProto"); var ProtobufUtil = com.bee.protobuf; let msg = ProtobufUtil.ProtoArea.create(); let buffer = ProtobufUtil.ProtoArea.encode(msg).finish(); let decode = ProtobufUtil.ProtoArea.decode(buffer); cons...
来源: Laya_社区 发布时间: 20171115
...Laya.loader.loadPackage("sub1111").then(() => { console.log('pack sub1 loaded'); new Subpack1().init(); }, (err) => { console.log('pack sub1 error', err); }); 2025-09-09 添加评论 免...
来源: Laya_社区 发布时间: 20250909