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

    Type Alias GameZoneConfig

    定义游戏区域的配置对象。

    Defines the configuration object for game zones.

    包含了游戏区域内各种环境效果和物理属性的配置。

    Contains configuration for various environmental effects and physical properties within the game zone.

    type GameZoneConfig = {
        bounds: GameBounds3;
        fogColor: GameRGBColor;
        fogDensity: number;
        fogEnabled: boolean;
        fogHeightFalloff: number;
        fogHeightOffset: number;
        fogMax: number;
        fogStartDistance: number;
        force: GameVector3;
        massScale: number;
        rainColor: GameRGBAColor;
        rainDensity: number;
        rainDirection: GameVector3;
        rainEnabled: boolean;
        rainInterference: number;
        rainSizeHi: number;
        rainSizeLo: number;
        rainSpeed: number;
        selector: GameSelectorString;
        skyBackLight: GameRGBColor;
        skyBottomLight: GameRGBColor;
        skyEnabled: boolean;
        skyFrontLight: GameRGBColor;
        skyLeftLight: GameRGBColor;
        skyLunarPhase: number;
        skyMode: "natural" | "manual";
        skyRightLight: GameRGBColor;
        skySunDirection: GameVector3;
        skySunFrequency: number;
        skySunLight: GameRGBColor;
        skySunPhase: number;
        skyTopLight: GameRGBColor;
        snowColor: GameRGBAColor;
        snowDensity: number;
        snowEnabled: boolean;
        snowFallSpeed: number;
        snowSizeHi: number;
        snowSizeLo: number;
        snowSpinSpeed: number;
        snowTexture: string;
    }
    Index

    Properties

    bounds: GameBounds3

    定义游戏区域的边界。

    Defines the boundaries of the game zone.

    fogColor: GameRGBColor

    定义雾效的颜色。

    Defines the color of the fog effect.

    fogDensity: number

    定义雾效的密度。

    Defines the density of the fog effect.

    fogEnabled: boolean

    表示是否启用雾效。

    Indicates whether fog effects are enabled.

    fogHeightFalloff: number

    定义雾效的高度衰减系数。

    Defines the height falloff coefficient of the fog effect.

    fogHeightOffset: number

    定义雾效的高度偏移量。

    Defines the height offset of the fog effect.

    fogMax: number

    定义雾效的最大浓度。

    Defines the maximum concentration of the fog effect.

    fogStartDistance: number

    定义雾效的起始距离。

    Defines the starting distance of the fog effect.

    定义应用于游戏区域内的力矢量。

    Defines the force vector applied within the game zone.

    massScale: number

    定义物体质量的缩放因子,影响物理模拟中的质量计算。

    Defines the scaling factor for object mass, affecting mass calculations in physics simulation.

    rainColor: GameRGBAColor

    定义雨效的颜色。

    Defines the color of the rain effect.

    rainDensity: number

    定义雨效的密度。

    Defines the density of the rain effect.

    rainDirection: GameVector3

    定义雨效的方向矢量。

    Defines the direction vector of the rain effect.

    rainEnabled: boolean

    表示是否启用雨效。

    Indicates whether rain effects are enabled.

    rainInterference: number

    定义雨效对视线或信号的干扰程度。

    Defines the interference level of rain effects on vision or signals.

    rainSizeHi: number

    定义雨粒子的最大尺寸。

    Defines the maximum size of rain particles.

    rainSizeLo: number

    定义雨粒子的最小尺寸。

    Defines the minimum size of rain particles.

    rainSpeed: number

    定义雨效的速度。

    Defines the speed of the rain effect.

    定义游戏区域的选择器字符串,用于标识和选择游戏区域。

    Defines the selector string for the game zone, used to identify and select the game zone.

    skyBackLight: GameRGBColor

    定义天空盒的后方光颜色。

    Defines the back light color of the skybox.

    skyBottomLight: GameRGBColor

    定义天空盒的底部光颜色。

    Defines the bottom light color of the skybox.

    skyEnabled: boolean

    表示是否启用天空盒。

    Indicates whether skybox is enabled.

    skyFrontLight: GameRGBColor

    定义天空盒的前方光颜色。

    Defines the front light color of the skybox.

    skyLeftLight: GameRGBColor

    定义天空盒的左侧光颜色。

    Defines the left light color of the skybox.

    skyLunarPhase: number

    定义天空盒的月相,用于控制月亮的外观。

    Defines the lunar phase of the skybox, used to control the appearance of the moon.

    skyMode: "natural" | "manual"

    定义天空盒的模式,可以是自然模式或手动模式。

    Defines the skybox mode, can be natural mode or manual mode.

    skyRightLight: GameRGBColor

    定义天空盒的右侧光颜色。

    Defines the right light color of the skybox.

    skySunDirection: GameVector3

    定义天空盒的太阳方向矢量。

    Defines the sun direction vector of the skybox.

    skySunFrequency: number

    定义天空盒的太阳频率,用于控制太阳光照的变化速度。

    Defines the sun frequency of the skybox, used to control the rate of change of sunlight.

    skySunLight: GameRGBColor

    定义天空盒的太阳光颜色。

    Defines the sunlight color of the skybox.

    skySunPhase: number

    定义天空盒的太阳相位,用于控制太阳的位置和光照。

    Defines the sun phase of the skybox, used to control the sun's position and lighting.

    skyTopLight: GameRGBColor

    定义天空盒的顶部光颜色。

    Defines the top light color of the skybox.

    snowColor: GameRGBAColor

    定义雪效的颜色。

    Defines the color of the snow effect.

    snowDensity: number

    定义雪效的密度。

    Defines the density of the snow effect.

    snowEnabled: boolean

    表示是否启用雪效。

    Indicates whether snow effects are enabled.

    snowFallSpeed: number

    定义雪粒子的下落速度。

    Defines the falling speed of snow particles.

    snowSizeHi: number

    定义雪粒子的最大尺寸。

    Defines the maximum size of snow particles.

    snowSizeLo: number

    定义雪粒子的最小尺寸。

    Defines the minimum size of snow particles.

    snowSpinSpeed: number

    定义雪粒子的旋转速度。

    Defines the rotation speed of snow particles.

    snowTexture: string

    定义雪粒子的纹理贴图路径。

    Defines the texture map path for snow particles.