ドキュメント

Unity Engine

Unity Engine

SamplePlayableGraph(PlayableGraph, int, float)

Samples the specified output index of a PlayableGraph and also records modified properties when in Animation mode.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void SamplePlayableGraph(PlayableGraph graph, int index, float time)

Parameters

The PlayableGraph to sample.

index

The output index to sample in the Playable Graph.

time

The time at which to sample.

Remarks

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