docs.unity.cn
    Show / Hide Table of Contents

    Interface ILiveLink

    Live link is used by a device to set the properties of an actor.

    Namespace: Unity.LiveCapture
    Syntax
    [Obsolete("Override LiveCaptureDevice.LiveUpdate to set properties to the actors in the scene.")]
    public interface ILiveLink
    Remarks

    The playable API is used to create a playable that uses an animation job to sets an actor's properties, which it injects as an output on a playable graph. This allows using a timeline to drive some or all of the actor's properties without needing to modify the timeline asset.

    Methods

    Build(PlayableGraph)

    Rebuilds the live link using the specified PlayableGraph.

    Declaration
    void Build(PlayableGraph graph)
    Parameters
    Type Name Description
    PlayableGraph graph

    The PlayableGraph to drive the live link from.

    GetAnimator()

    Gets the animator the live link outputs to.

    Declaration
    Animator GetAnimator()
    Returns
    Type Description
    Animator

    The animator component.

    IsActive()

    Gets if the live link is configured to output to the actor's properties.

    Declaration
    bool IsActive()
    Returns
    Type Description
    Boolean

    True if output is enabled; false otherwise.

    IsValid()

    Checks if the playables driving the live link are valid.

    Declaration
    bool IsValid()
    Returns
    Type Description
    Boolean

    true if valid; otherwise, false.

    SetActive(Boolean)

    Sets if the live link outputs to the actor's properties.

    Declaration
    void SetActive(bool value)
    Parameters
    Type Name Description
    Boolean value

    True to enable output; false to disable output.

    SetAnimator(Animator)

    Sets the animator the live link outputs to.

    Declaration
    void SetAnimator(Animator animator)
    Parameters
    Type Name Description
    Animator animator

    The animator to use, or null to clear the assigned animator.

    Update()

    Updates the live link output.

    Declaration
    void Update()
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, August 26, 2022
    Terms of use