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

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

1721. 关于这个timer我的跑的快在 自己出完牌之后没有人比我的牌大了。可是我的牌还是出不去 [ 38%]

...mg; img.skin = this.aaa.playerNameList[i].playerhandpoker[j].PokerDre; img.width = 76; img.height = 110; img.pos(200 + i * 35, 230); Laya.stage.addChild(img); this.reciveOutPoker.push(img); this.outHandPoker.push(this.aaa.playerNameList[i].playerhandpoker[j]); this.lastPaixing = 1;  for (let x = 0;...

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

1722. LayaAirIDE的可视化2D物理编辑入门(TypeScript-IDE篇(TS)-使用2d物理系统) [ 38%]

...形碰撞体 `BoxCollider` ![img](img/5-1.png) (图5-1) ##### 宽高 `width、height` 矩形碰撞体BoxCollider,也可以直译为盒子碰撞体,是封闭的直角平行四边形碰撞框,为节点添加BoxCollider组件后,默认的BoxCollider宽高会等于该节点的宽高。如果...

来源: Laya2.0_文档 发布时间: 20210714

1723. 关于截屏的问题 [ 38%]

...-----------2"); Laya.Browser.window.conch.captureScreen(function(arrayBuff,width,height){ console.log("onCharge-------------------------3"); //存储文件的方 Laya.Browser.window.conch.saveAsPng( arrayBuff,width,height,Laya.Browser.window.conch.getCachePath()+"/test.png" ); console.log("onCharge-...

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

1724. 一篇了解LayaAir的屏幕适配,及有效抗锯齿(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 37%]

...`3×3`个物理像素。 LayaAir引擎里可以通过`Laya.Browser.clientWidth`获取逻辑分辨率的宽,通过`Laya.Browser.clientHeight`获取逻辑分辨率的高。 在手机等移动设备的竖屏状态下,窄面为宽,长面为高。如果发生了屏幕翻转的横屏状态,则长...

来源: Laya2.0_文档 发布时间: 20210715

1725. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 36%]

...格的行数 list.repeatY = 4; //设置列表位置 list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 使用但隐藏垂直滚动条 list.vScrollBarSkin = ""; //滚动在头或底回弹时间 list.scrollBar.elasticBackTime = 500; //滚动在...

来源: Laya2.0_文档 发布时间: 20210715

1726. 微信小游戏利用开放域好友关系链做排行榜 [ 36%]

...         sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height);                  // console.log("再次往开放域发请求");                 // openDataContext.postMessage({                 //  cmd:2,     ...

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

1727. Adobe Flash Builder 4.7无法编译Laya2.6.1创建的3D示例项目 [ 36%]

...(){ //function Laya(){} Laya.__init=function(_classs){} Laya.init=function(width,height,__plugins){} Laya.alertGlobalError=function(value){} Laya.enableDebugPanel=function(debugJsPath){} Laya.stage=null; Laya.systemTimer=null; Laya.startTimer=null; Laya.physicsTimer=null; Laya.updateTimer=null; Laya...

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

1728. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...形式定义开放数据域的样式和布局 let style = { container: { width: 400, height: 200, backgroundColor: "#ffffff", justifyContent: "center", alignItems: "center", }, testText: { color: "#ffffff", width: "100%", height: "100%", lineHeight: 200, fontSize: 40, textAlign: "center", }, // 文...

来源: Laya3.0_文档 发布时间: 20251010

1729. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 设置List的垂直滚动 list.scrollType = Laya.ScrollType.Vertical; // 设置List的垂直滚动皮肤,不设置或者""就没有滚动...

来源: Laya3.0_文档 发布时间: 20251010

1730. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 34%]

... this.viewport.x; this._rayViewport.y = this.viewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代...

来源: Laya3.0_文档 发布时间: 20251010