大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0079 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...是更新后返回的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
on 事件里,除了可以传递this,怎么给回调里传入其他的数据呢? 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: https://ask.layabox.com/question/3125 2018-01-...
来源: Laya_社区 发布时间: 20180124
...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
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
...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
...); 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
...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
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
...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
..."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