大约有 1,557 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
Laya_社区(551) Laya3.0_api(360) Laya2.0_api(247) laya_api(208) Laya2.0_文档(120) Laya3.0_文档(69) Laya2.0_示例(2)
... 保存场景后,在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
...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
API DocumentationAll Packages | All Classes | Index | Frames No Frames CapsuleColliderShapeProperties | Methods Packagelaya.d3.physics.shapeClasspublic class CapsuleColliderShapeInheritanceCapsuleColliderShape ColliderShape Object CapsuleColliderShape 类用于创建胶囊形状碰撞器。...
来源: Laya2.0_api 发布时间: 20190513
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
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
复杂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
...nherited Externals Only exported Menu Globals "laya/utils/Handler" Handler Class Handler Handler 是事件处理器类。 推荐使用 Handler.create() 方法从对象池创建,减少对象创建消耗。创建的 Handler 对象不再使用后,可以使用 Handler.recover() 将其回收到对象...
来源: Laya3.0_api 发布时间: 20231115
API DocumentationAll Packages | All Classes | Index | Frames No Frames Point2PointConstraintProperties | Methods Packagelaya.d3.physics.constraintsClasspublic class Point2PointConstraintInheritancePoint2PointConstraint Object Point2PointConstraint 类用于创建物理组件的父类。 Pub...
来源: Laya2.0_api 发布时间: 20190513
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
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