@minecraft
    正在准备搜索索引...

    接口 ITimelinePlayer

    A pane that hosts a single playhead and a collection of timeline entries that share it

    interface ITimelinePlayer {
        enable: boolean;
        entryCount: number;
        id: string;
        paneId: string;
        typeName: PropertyItemType;
        visible: boolean;
        addGroup(
            id: string,
            name: LocalizedString,
            tooltip?: LocalizedString,
        ): void;
        addVector3Timeline(
            options: IVector3TimelinePlayerEntryOptions,
        ): IVector3TimelinePlayerEntry;
        getDuration(): number;
        getEntryById(id: string): ITimelinePlayerEntry;
        getEntryByIndex(index: number): ITimelinePlayerEntry;
        getGroups(): ITimelinePlayerGroup[];
        getPlaybackState(): TimelinePlayerPlaybackState;
        getPrecision(): number;
        getSelectedGroupId(): string;
        getTime(): number;
        hide(): void;
        removeEntry(id: string): boolean;
        removeGroup(id: string): void;
        renameGroup(id: string, newName: LocalizedString): void;
        setDuration(duration: number): void;
        setPlaybackState(state: TimelinePlayerPlaybackState): void;
        setPrecision(precision: number): void;
        setSelectedGroupId(id: string): void;
        setTime(time: number): void;
        show(): void;
    }

    层级 (查看层级一览)

    索引

    属性

    enable: boolean

    If the item is enabled in the UI.

    entryCount: number

    Number of timeline entries owned by this player.

    id: string

    Unique ID for the property item.

    paneId: string

    The parent pane id.

    The type name of the target property.

    visible: boolean

    If the item should be visible in the UI.

    方法

    • 参数

      • id: string

        Identifier of the group to remove.

      返回 void

      Remove a group from the dropdown.

    • 参数

      • duration: number

        New duration in seconds.

      返回 void

      Set the total duration in seconds.

    • 参数

      • precision: number

        Decimal precision.

      返回 void

      Set the decimal precision used for keyframe time spacing.