[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/AnimationMode.SamplePlayableGraph.html [Back]  [Original]

Unity - Scripting API: AnimationMode.SamplePlayableGraph(GameObject,PlayableGraph,int,float)
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    AnimationMode.SamplePlayableGraph(GameObject,PlayableGraph,int,float)

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Parameters

    Parameter Description
    graph The PlayableGraph to sample.
    index The output index to sample in the Playable Graph.
    time The time at which to sample.

    Description

    Samples the specified output index of a PlayableGraph and also records modified properties when in Animation mode.

    To successfully use this method, BeginSampling must be called before this method and EndSampling must be called after. If a property is no longer sampled (for example, through SampleAnimationClip, SamplePlayableGraph, or AddPropertyModification), the property reverts to its original value when EndSampling is called.


    Web Proxy Viewer  |  New URL  |  Original Page