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

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

441. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

... 保存场景后,在RuntimeScript.ts中添加如下代码: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(Laya.Event.CLICK, this, () => { this.close...

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

442. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 70%]

...abox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=Filter&class=laya.filters.ColorFilter) 查看API说明。 ### 1.2 设置颜色滤镜 如果要给一个位图设置颜色滤镜,需要先设置一个颜色矩阵,然后用ColorFilter方法创建一个颜色滤镜实例,如下...

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

443. laya.d3.physics.shape.CapsuleColliderShape [ 70%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames CapsuleColliderShapeProperties | Methods Packagelaya.d3.physics.shapeClasspublic class CapsuleColliderShapeInheritanceCapsuleColliderShape ColliderShape Object CapsuleColliderShape 用于创建胶囊形状碰撞器。...

来源: Laya2.0_api 发布时间: 20190513

444. laya.d3.math.Rand [ 70%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames RandProperties | Methods Packagelaya.d3.mathClasspublic class RandInheritanceRand Object Rand 用于通过32位无符号整型随机种子创建随机数。 Public Properties PropertyDefined By  seed : uint 获取...

来源: laya_api 发布时间: 20170929

445. laya.d3.math.Rand [ 70%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames RandProperties | Methods Packagelaya.d3.mathClasspublic class RandInheritanceRand Object Rand 用于通过32位无符号整型随机种子创建随机数。 Public Properties PropertyDefined By  seed : uint 获取...

来源: Laya2.0_api 发布时间: 20190513

446. 复杂UI卸载 [ 70%]

复杂UI卸载 class GameUI extends View{ container:Laya.Sprite; img1:Laya.Image; anim1:Laya.Animation; ... }, 似这样的复杂UI,里面包含了各种型的组件,当需要卸载GameUI的时候,gameUI.removeSelf();gameUI.destroy(true);gameUI = null ,用这种方式是否可行...

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

447. laya.utils.Handler_API3.0 [ 70%]

...nherited Externals Only exported Menu Globals "laya/utils/Handler" Handler Class Handler Handler 是事件处理器。 推荐使用 Handler.create() 方法从对象池创建,减少对象创建消耗。创建的 Handler 对象不再使用后,可以使用 Handler.recover() 将其回收到对象...

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

448. laya.d3.physics.constraints.Point2PointConstraint [ 70%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Point2PointConstraintProperties | Methods Packagelaya.d3.physics.constraintsClasspublic class Point2PointConstraintInheritancePoint2PointConstraint Object Point2PointConstraint 用于创建物理组件的父。 Pub...

来源: Laya2.0_api 发布时间: 20190513

449. laya.d3.math.Plane [ 70%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames PlaneProperties | Methods Packagelaya.d3.mathClasspublic class PlaneInheritancePlane Object Plane 用于创建平面。 Public Properties PropertyDefined By  distance : Number平面到坐标系原点的距离Plane...

来源: laya_api 发布时间: 20170929

450. laya.d3.math.Plane [ 70%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames PlaneProperties | Methods Packagelaya.d3.mathClasspublic class PlaneInheritancePlane Object Plane 用于创建平面。 Public Properties PropertyDefined By  distance : Number平面到坐标系原点的距离Plane...

来源: Laya2.0_api 发布时间: 20190513