• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 427 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)

61. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 83%]

...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

62. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 82%]

...件 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

63. socket通讯返回数据 [ 82%]

...# } private openHandler(event: any = null): void { //正确建立连接; console.log("建立连接");//***************************************************************************不写出 console.log(event); } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 console.l...

来源: Laya_社区 发布时间: 20180211

64. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

... 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

65. 子容器的事件问题 [ 82%]

...(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

66. Chrome查看内存快照,发现TextureSV的filters数组不会释放,每次都增加 [ 82%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 问题状态 最新活动: 2017-09-07 19:45 浏览: 826 关注: 2 人 sun9278888 • 2017-09-07 19:58 或者指导一下我怎么改吧,我们项目已经上...

来源: Laya_社区 发布时间: 20170907

67. as3字符串截取int的问题 [ 82%]

...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

68. websocket服务端显示连接成功,客户端未进行回调 [ 82%]

...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

69. Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,有偿悬赏解答 [ 82%]

... onTriggerEnter,onTriggerStay,onTriggerExit 方法,并且在方法内有console.log输出,player设置了点击z方向向前移动   2、GameManager.ts:40-41行获取被碰撞体、72-94行管理被碰撞体和给每个被碰撞体添加了刚体,同时 isTrigger =true,isKinematic=true,...

来源: Laya_社区 发布时间: 20200728

70. 动态阴影被切割了?为啥没有显示完成的阴影 [ 81%]

...{ 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