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

大约有 2,163 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0068 秒)

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

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

1133. 骨骼动画-藤蔓 [ 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_示例 发布时间: 20241002

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

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

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

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

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

1137. 骨骼动画-橡胶人 [ 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_示例 发布时间: 20241002

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

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

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

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

1140. 文本-滚动文本 [ 61%]

...,面向AS/JS/TS开发者提供HTML5开发技术方案!"; txt.size(200, 100); txt.x = Laya.stage.width - txt.width >> 1; txt.y = Laya.stage.height - txt.height >> 1; txt.borderColor = "#FFFF00"; txt.fontSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, sta...

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