神岛 API 文档 - ArenaPro版
    Preparing search index...

    触发器可以用于检测对象何时进入或离开某个区域。

    Triggers can be used to detect when objects enter or leave a certain area.

    Index

    Other

    bounds: GameBounds3

    区域的边界。

    The boundaries of the area.

    entities: () => GameEntity[]

    列出所有实体。

    Lists all entities.

    fogColor: GameRGBColor

    雾的颜色。

    The color of the fog.

    fogDensity: number

    雾的密度。

    The density of the fog.

    fogEnabled: boolean

    是否启用雾效果。

    Whether fog effects are enabled.

    fogHeightFalloff: number

    雾的高度衰减。

    The height falloff of the fog.

    fogHeightOffset: number

    雾的高度偏移。

    The height offset of the fog.

    fogMax: number

    雾的最大值。

    The maximum value of the fog.

    fogStartDistance: number

    雾开始的距离。

    The distance at which fog starts.

    应用到对象上的力的大小。

    The magnitude of force applied to objects.

    massScale: number

    控制对象的质量对力的影响。

    Controls the effect of object mass on force.

    0 = 行为像重力

    0 = Behaves like gravity

    1 = 行为像风

    1 = Behaves like wind

    获取下一个进入事件。

    Gets the next enter event.

    获取下一个离开事件。

    Gets the next leave event.

    当实体进入区域时触发。

    Triggered when an entity enters the area.

    当实体离开区域时触发。

    Triggered when an entity leaves the area.

    rainColor: GameRGBAColor

    雨的颜色。

    The color of the rain.

    rainDensity: number

    雨的密度。

    The density of the rain.

    rainDirection: GameVector3

    雨的方向。

    The direction of the rain.

    rainEnabled: boolean

    是否启用雨效果。

    Whether rain effects are enabled.

    rainInterference: number

    雨的干扰程度。

    The interference level of the rain.

    rainSizeHi: number

    雨的最大尺寸。

    The maximum size of the rain.

    rainSizeLo: number

    雨的最小尺寸。

    The minimum size of the rain.

    rainSpeed: number

    雨的速度。

    The speed of the rain.

    remove: () => void

    销毁区域。

    Destroys the area.

    selector: string

    选择器过滤条件。

    Selector filter conditions.

    skyBackLight: GameRGBColor

    后方光颜色。

    The back light color.

    skyBottomLight: GameRGBColor

    底部光颜色。

    The bottom light color.

    skyEnabled: boolean

    是否启用天空效果。

    Whether sky effects are enabled.

    skyFrontLight: GameRGBColor

    前方光颜色。

    The front light color.

    skyLeftLight: GameRGBColor

    左侧光颜色。

    The left light color.

    skyLunarPhase: number

    月相。

    The lunar phase.

    skyMode: "natural" | "manual"

    天空模式。

    Sky mode.

    'natural' - 自然模式

    'natural' - Natural mode

    'manual' - 手动模式

    'manual' - Manual mode

    skyRightLight: GameRGBColor

    右侧光颜色。

    The right light color.

    skySunDirection: GameVector3

    太阳方向。

    The sun direction.

    skySunFrequency: number

    太阳频率。

    The sun frequency.

    skySunLight: GameRGBColor

    太阳光颜色。

    The sunlight color.

    skySunPhase: number

    太阳相位。

    The sun phase.

    skyTopLight: GameRGBColor

    顶部光颜色。

    The top light color.

    snowColor: GameRGBAColor

    雪的颜色。

    The color of the snow.

    snowDensity: number

    雪的密度。

    The density of the snow.

    snowEnabled: boolean

    是否启用雪效果。

    Whether snow effects are enabled.

    snowSizeLo: number

    雪的最小尺寸。

    The minimum size of the snow.

    snowSpinSpeed: number

    雪的旋转速度。

    The rotation speed of the snow.

    snowTexture: string

    雪的纹理。

    The texture of the snow.

    Weather

    snowFallSpeed: number

    雪的下落速度。

    The speed at which the snow falls.

    snowSizeHi: number

    雪的最大尺寸。

    The maximum size of the snow.