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

    Interface GameWorldKeyframe

    定义游戏世界的关键帧接口,用于描述游戏环境中各种效果和状态的动画变化。

    Defines the interface for a game world keyframe, used to describe animated changes in various effects and states in the game environment.

    interface GameWorldKeyframe {
        airFriction: number;
        duration: number;
        easeIn: GameEasing;
        easeOut: GameEasing;
        fogColor: GameRGBColor;
        fogHeightFalloff: number;
        fogHeightOffset: number;
        fogStartDistance: number;
        fogUniformDensity: number;
        gravity: number;
        lightMode: "natural" | "manual";
        lunarPhase: number;
        maxFog: number;
        rainColor: GameRGBAColor;
        rainDensity: number;
        rainDirection: GameVector3;
        rainInterference: number;
        rainSizeHi: number;
        rainSizeLo: number;
        rainSpeed: number;
        skyBackLight: GameRGBColor;
        skyBottomLight: GameRGBColor;
        skyFrontLight: GameRGBColor;
        skyLeftLight: GameRGBColor;
        skyRightLight: GameRGBColor;
        skyTopLight: GameRGBColor;
        snowColor: GameRGBAColor;
        snowDensity: number;
        snowFallSpeed: number;
        snowSizeHi: number;
        snowSizeLo: number;
        snowSpinSpeed: number;
        snowTexture: string;
        sunDirection: GameVector3;
        sunFrequency: number;
        sunLight: GameRGBColor;
        sunPhase: number;
    }
    Index

    Properties

    airFriction: number

    空气摩擦系数,用于控制物体在空气中移动时的阻力。

    The air friction coefficient, controlling the resistance for objects moving through the air.

    duration: number

    关键帧持续时间,单位为毫秒。

    The duration of the keyframe in milliseconds.

    easeIn: GameEasing

    加速曲线类型,用于控制关键帧开始时的变化速度。

    The easing curve type for acceleration, controlling the rate of change at the start of the keyframe.

    easeOut: GameEasing

    减速曲线类型,用于控制关键帧结束时的变化速度。

    The easing curve type for deceleration, controlling the rate of change at the end of the keyframe.

    fogColor: GameRGBColor

    雾效颜色,使用RGB格式。

    The fog color in RGB format.

    fogHeightFalloff: number

    雾效高度衰减系数,用于控制雾效随高度减少的速度。

    The fog height falloff factor, controlling how quickly the fog diminishes with height.

    fogHeightOffset: number

    雾效高度偏移量,用于调整雾效的垂直位置。

    The height offset of the fog, used to adjust its vertical position.

    fogStartDistance: number

    雾效起始距离,单位为米。

    The starting distance of the fog in meters.

    fogUniformDensity: number

    统一雾效密度,用于控制雾效的浓密程度。

    The uniform fog density, controlling the thickness of the fog.

    gravity: number

    重力加速度,用于控制物体下落速度。

    The gravitational acceleration, controlling the falling speed of objects.

    lightMode: "natural" | "manual"

    光照模式,可以是 'natural' (自然) 或 'manual' (手动)。

    The lighting mode, can be 'natural' or 'manual'.

    lunarPhase: number

    月相,用于控制月亮的光照效果。

    The lunar phase, used to control the lighting effects of the moon.

    maxFog: number

    最大雾效强度,用于限制雾效的最大可见度。

    The maximum fog intensity, limiting the maximum visibility of the fog.

    rainColor: GameRGBAColor

    雨色,使用RGBA格式,支持透明度。

    The color of the rain in RGBA format, with transparency support.

    rainDensity: number

    雨密度,用于控制雨效的浓密程度。

    The rain density, controlling the thickness of the rain effect.

    rainDirection: GameVector3

    雨方向,使用三维向量表示。

    The direction of the rain, represented by a 3D vector.

    rainInterference: number

    雨干扰程度,用于控制雨滴的随机偏移。

    The rain interference level, controlling the random offset of raindrops.

    rainSizeHi: number

    大雨滴大小,单位为米。

    The size of large raindrops in meters.

    rainSizeLo: number

    小雨滴大小,单位为米。

    The size of small raindrops in meters.

    rainSpeed: number

    雨速,单位为米/秒。

    The speed of the rain in meters per second.

    skyBackLight: GameRGBColor

    后方天空光照颜色。

    The sky light color from the back.

    skyBottomLight: GameRGBColor

    底部天空光照颜色。

    The sky light color from the bottom.

    skyFrontLight: GameRGBColor

    前方天空光照颜色。

    The sky light color from the front.

    skyLeftLight: GameRGBColor

    左侧天空光照颜色。

    The sky light color from the left.

    skyRightLight: GameRGBColor

    右侧天空光照颜色。

    The sky light color from the right.

    skyTopLight: GameRGBColor

    顶部天空光照颜色。

    The sky light color from the top.

    snowColor: GameRGBAColor

    雪色,使用RGBA格式,支持透明度。

    The color of the snow in RGBA format, with transparency support.

    snowDensity: number

    雪密度,用于控制雪效的浓密程度。

    The snow density, controlling the thickness of the snow effect.

    snowFallSpeed: number

    雪片下落速度,单位为米/秒。

    The falling speed of snowflakes in meters per second.

    snowSizeHi: number

    大雪片大小,单位为米。

    The size of large snowflakes in meters.

    snowSizeLo: number

    小雪片大小,单位为米。

    The size of small snowflakes in meters.

    snowSpinSpeed: number

    雪片旋转速度,用于控制雪片的旋转动画。

    The spin speed of snowflakes, controlling their rotation animation.

    snowTexture: string

    雪纹理,使用字符串表示雪片的纹理资源。

    The snow texture, represented by a string for the snowflake texture resource.

    sunDirection: GameVector3

    太阳方向,使用三维向量表示。

    The direction of the sun, represented by a 3D vector.

    sunFrequency: number

    太阳频率,用于控制太阳光照的变化速度。

    The sun frequency, controlling the speed of change in sunlight.

    sunLight: GameRGBColor

    太阳光照颜色,使用RGB格式。

    The color of the sunlight in RGB format.

    sunPhase: number

    太阳相位,用于控制太阳的位置和光照。

    The sun phase, used to control the position and lighting of the sun.