Interface AnimationClipOptions

关键帧动画选项

interface AnimationClipOptions {
    blendMode?: AnimationBlendMode;
    duration?: number;
    fps?: number;
    name?: string;
    tracks: {
        interpolation?: InterpolationModes;
        name?: string;
        times: number[];
        type: "string" | "number" | "boolean" | "color" | "quaternion" | "vector3" | "double" | "float" | "integer" | "vector" | "vector2" | "vector4" | "bool";
        values: any[];
    }[];
    uuid?: number;
}

Properties

blendMode?: AnimationBlendMode

混合模式

duration?: number

时长

fps?: number

帧率

name?: string

动画名称

tracks: {
    interpolation?: InterpolationModes;
    name?: string;
    times: number[];
    type: "string" | "number" | "boolean" | "color" | "quaternion" | "vector3" | "double" | "float" | "integer" | "vector" | "vector2" | "vector4" | "bool";
    values: any[];
}[]

关键帧数据

Type declaration

  • Optional interpolation?: InterpolationModes

    插值方法

  • Optional name?: string

    名称

  • times: number[]

    时间

  • type: "string" | "number" | "boolean" | "color" | "quaternion" | "vector3" | "double" | "float" | "integer" | "vector" | "vector2" | "vector4" | "bool"

    类型

  • values: any[]

uuid?: number

uuid