大约有 427 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
...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
...件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() { //创建第一个动画 var skeleton0; //从动画模板创建动画播放对象 skeleton0=templet.buildArmature(0); skeleton0.pos(200,700); //切换动画皮肤 skeleto...
来源: Laya2.0_文档 发布时间: 20210715
...# } private openHandler(event: any = null): void { //正确建立连接; console.log("建立连接");//***************************************************************************不写出 console.log(event); } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 console.l...
来源: Laya_社区 发布时间: 20180211
... asset:string = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调用清理方法 Laya.loader.clearRes(asset); //查看log,清理后,资源被卸载 console.log(Laya.loader.getRes(asset)); } }); 1.4 关于滤镜、遮罩 尝试尽量减少使...
来源: Laya3.0_文档 发布时间: 20251010
...(vhvt); vhvt.on(laya.events.Event.CLICK, this, (event: Laya.Event) => { console.log("为什么这里不进来"); }); } /** * ViewHeadViewTest */ class ViewHeadViewTest extends Laya.Sprite { constructor() { super(); this.graphics.drawRect(0, 0, 1500, 1500, "#0000f...
来源: Laya_社区 发布时间: 20170822
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 问题状态 最新活动: 2017-09-07 19:45 浏览: 826 关注: 2 人 sun9278888 • 2017-09-07 19:58 或者指导一下我怎么改吧,我们项目已经上...
来源: Laya_社区 发布时间: 20170907
...g.gamrRoomEnterPower; },function(value){ DConfig.gamrRoomEnterPower=value; console.log(DConfig.gamrRoomEnterPower.length); console.log(DConfig.gamrRoomEnterPower); for (var i=0;i < DConfig.gamrRoomEnterPower.length;i++){ DConfig.gamrRoomEnterPower=int(DConfig.gamrRoomEnterPower[i]); } });[/i] 201...
来源: Laya_社区 发布时间: 20170731
...p udp //创建server服务 var server = net.createServer(function (conn) { console.log('new connection is connecting') conn.write('\n hello buddy') }); server.listen(8081, function () { console.log('server is listening') // server.emit('connection'); }); 2019-04-23 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190423
... onTriggerEnter,onTriggerStay,onTriggerExit 方法,并且在方法内有console.log输出,player设置了点击z方向向前移动 2、GameManager.ts:40-41行获取被碰撞体、72-94行管理被碰撞体和给每个被碰撞体添加了刚体,同时 isTrigger =true,isKinematic=true,...
来源: Laya_社区 发布时间: 20200728
...{ var box = scene.addChild(new myCube(0.1, 0.1, 11.5, colorCalc(), 0, 1)); console.log(box); } function addTestBox() { var box = scene.addChild(new myCube(0.1, 0.1, 11.5, colorCalc(), 0, 1)); console.log(box); } function addFirstBox() { var box = scene.addChild(new myCube(1, 1, 0.5, colorCalc(), 0))...
来源: Laya_社区 发布时间: 20180402