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

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

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

1182. 加载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

1183. 骨骼动画-藤蔓 [ 62%]

...("error"); } parseComplete() { const Event = Laya.Event; // 创建模式为1,使用动画自己的缓冲区,可以启用换装(相当耗费内存) mArmature = mFactory.buildArmature(1); Laya.stage.addChild(mArmature); mArmature.pos(mStartX, mStartY); mArmature.scale(0.5, 0.5); mArmature.on(Event...

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

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

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

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

1185. 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_示例 发布时间: 20260303

1186. 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_示例 发布时间: 20260303

1187. 骨骼动画-橡胶人 [ 62%]

...("error"); } parseComplete() { const Event = Laya.Event; // 创建模式为1,使用动画自己的缓冲区,可以启用换装(相当耗费内存) mArmature = mFactory.buildArmature(1); Laya.stage.addChild(mArmature); mArmature.pos(mStartX, mStartY); // mArmature.scale(0.5, 0.5); mArmature.on(Ev...

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

1188. 怎么对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

1189. 如何监听移动端软键盘的弹出和收回? [ 61%]

如何监听移动端软键盘的弹出和收回? 2015-12-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自:   调用移动端的软键盘,一般是和TextInput的操作绑定的。 ...

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

1190. 2D网格渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 61%]

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

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