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

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

161. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 50%]

...in { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "#101825"; this.init() } init() { // 预加载图集 Laya.loader.load("r...

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

162. 2D自由形态光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...oint = polygon; // 增加灯光强度和设置灯光颜色 this.lightComp.falloffRange = 3; // 增大衰减范围 this.lightComp.color = new Laya.Color(1.0, 0.9, 0.6, 1); // 设置灯光颜色 this.lightComp.intensity = this.intensity; // 应用灯光强度 } onUpdate(): void { // 实现灯光旋转...

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

163. 水平布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...hbox.space = 100; this.hbox.align = "middle"; } } Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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

164. laya.utils.Browser_API3.0 [ 50%]

...reparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/utils/Browser" Browser Class Browser Browser 是浏览器代理类。封装浏览器及原生 js 提供的一些功能。 Hierarchy Browser ...

来源: Laya3.0_api 发布时间: 20231115

165. 基础使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...个实例,访问GRoot使用GRoot.inst即可。 Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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

166. Cannot read property 'load' of null [ 50%]

...了 iOS 接入微信登录,配置了"Other Linker Flags"中加入"-Objc -all_load"后编译不通过 问题状态 最新活动: 2017-11-24 15:22 浏览: 5188 关注: 2 人 wudi199553 • 2017-11-24 15:05 没有啊 zhengmaidou • 2017-11-24 15:06 @wudi199553:稍等 zhengmaidou • 2017-11-24 15:25...

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

167. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 50%]

...rsively check its child objects until it finds the target object or misses all objects. * When not penetrable, the node's width and height define the mouse collision area (a non-penetrable rectangular area). If the rectangular collision area does not meet the requirements, you can use the drawing ar...

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

168. 2.x引擎项目升级说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...s.push(Laya.loader.load(url)); tasks.push(Laya.loader.load(url2)); Promise.all(tasks).then((res:Array<any>)=> { //用于异步加载 }); 1.4 Texture和Texture2D的问题 同一个资源地址,无论是加载Texture还是Texture2D,他们在内存中都只有一份,但可以获取不同...

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

169. 复选框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 49%]

...运行效果如下动图所示: (动图2-1) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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

170. UI组件资源命名规则 · LayaAir3.4 · 引擎文档 · LAYABOX [ 49%]

...的打散容器,如图2-2所示。 (图2-2) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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