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

大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0079 秒)

901. [LayaAir3]关于laya更新到3.1出现射线检测不到的情况 [ 88%]

...是更新后返回的d的数据         var startPoi=new Laya.Vector3(this.Bullet.transform.position.x,this.Bullet.transform.position.y,this.Bullet.transform.position.z-0.5);//起始点         var dir = new Laya.Vector3(0,0,-1);//方向         var ray:Laya.Ray = new Laya.Ray(startPoi,d...

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

902. on 事件里,除了可以传递this,怎么给回调里传入其他的数据呢? [ 88%]

on 事件里,除了可以传递this,怎么给回调里传入其他的数据呢? 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: https://ask.layabox.com/question/3125   2018-01-...

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

903. graphics绘制边框 梅点击一次旋转30°后边框位置偏移 [ 88%]

...0°后边框位置偏移 let sp = new Laya.Sprite(); drawArr = [startX, 0, this.width, 0, this.width - startX, this.height, 0, this.height]; sp.graphics.drawPoly(0, 0, drawArr, fillColor, this.m_vo.c_StrokeColor, this.m_vo.c_StrokeThickness); 附件 : --> 2019-09-10 添加评论 免费帖 --> 分享...

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

904. layaAir中Animation无法获得宽高,很多逻辑无法判断 [ 88%]

layaAir中Animation无法获得宽高,很多逻辑无法判断 this.animation = new Animation(); this.animation.loadAtlas( _path ); this.animation.interval = _speed; // 设置播放间隔(单位:毫秒) this.animation.play(); this.addChild( this.animation ); this.animation.width 一直为0 ...

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

905. socket无法连接服务器 [ 88%]

...eDistconnected;         private initSocket(): void {             this.on(Laya.Event.OPEN, this, this.onConected);             this.on(Laya.Event.ERROR, this, this.onError);         }         public conectToServer(): void { //“连接”按钮的回调             if (t...

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

906. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 88%]

...); Laya.init(Browser.width, Browser.height); Stat.show();  //棋子动画 this.genSpine("res/spine/ludo_qizidongzuo.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => {  //模版复用 let y = 400; let unitWidth = Laya.stage.width / 16; for (let i = 0; i < 16; i++) { let person...

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

907. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 88%]

...the .lh file root type must be Scene,please use other function to  load  this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to  load  this file.     at MyScene.__proto.onAsynLoaded (http://127.0.0.1:59022/game/code....

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

908. TS 图片的显示隐藏 [ 88%]

TS 图片的显示隐藏 this.niuniuNormal.visible = idx != 0; this.niuniuSelect.visible = idx == 0; this.frogNormal.visible = idx != 1; this.frogSelect.visible = idx == 1; this.waterNormal.visible = idx != 2;   前面的这些写法不行,,,后面的这个行,,,,这种判断是可...

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

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

...uper(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.ro...

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

910. UI-Tree [ 88%]

..."render", "right": "0", "left": "0"}}; function Item() { Item.__super.call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结构的项的...

来源: Laya_示例 发布时间: 20250225