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

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

1071. 截屏drawToCanvas的疑问 [ 62%]

...来竟然什么都没有,究竟是相对于什么的偏移量 天啊 2018-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: offset 是起始坐标,应当是0,0 , 你设置了宽...

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

1072. 加载TiledMap 不显示 [ 62%]

... // 不支持WebGL时自动切换至Canvas         // Laya.init(1600, 800, WebGL);          // Laya.stage.alignV = Stage.ALIGN_MIDDLE;         // Laya.stage.alignH = Stage.ALIGN_CENTER;          // Laya.stage.scaleMode = Stage.SCALE_SHOWALL;      ...

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

1073. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

2D网格渲染器一、简介二、在LayaAir-IDE中使用2.1 材质2.2 网格2.3 纹理与颜色2.4 平铺偏移三、通过代码使用2D网格渲染器 一、简介 2D网格渲染器(Mesh2DRender)用于在2D场景中显示和渲染2D网格,支持纹理渲染,可以设置渲染颜色,...

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

1074. UI-List [ 62%]

... List(); Laya.stage.addChild(list); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handl...

来源: Laya2.0_示例 发布时间: 20251219

1075. UI-List [ 62%]

...on setup() { var list = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handl...

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

1076. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 62%]

...this.dragRegion = new Rectangle(Laya.stage.width - dragWidthLimit >> 1, Laya.stage.height - dragHeightLimit >> 1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( this.dragRegion.x, this.dragRegion.y, this.dragRegion.width, this.dragRegion.height...

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

1077. Cannot read property 'rayCast' of undefined [ 62%]

...ya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, config3D); Laya....

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

1078. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 62%]

...====   本节主要讲一下 玩家·~~~  这节要说的要点如下: 1、打包动画图集 2、创建动画模板 首先 当然是将我们需要的素材放到素材目录   这么多图 ~~~~ 一张一张加载要屎人的 我们不怕 因为laya有图集打包工具 图集是什么?你...

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

1079. 原生语言与JS通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

原生语言与JavaScript通信1.JS端脚本的执行1.1 在 JS端向原生端发送消息1.2 在原生端中主动执行JS端脚本2. 原生端的消息处理1. HarmonyOS2. Android3. iOS4. windows5. Linux原生语言与JavaScript通信 有的时候,我们需要在Native里扩展一些原生语...

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

1080. 体验LayaAir 3.0.0-beta.4遇到的一些问题 [ 61%]

...Laya3.x做的简单的一个篮球demo都遇到了很多问题 比如: 1.编辑碰撞器的时候总是感觉偏移很严重,总是找不到正确的位置, 我在笔记本上编辑,不知道是不是屏幕小的原因,但是在untiy里编辑是很正常的,所以还是有问题的 碰撞...

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