ドキュメント

Unity Engine

Unity Engine

GetAnimationClips

Retrieves an array of animation clips associated with a GameObject or component. GetAnimationClips(Animation) is obsolete and has been replaced with GetAnimationClips(GameObject).
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

GetAnimationClips(Animation)

Retrieves an array of animation clips associated with a GameObject or component.
GetAnimationClips(Animation)
is obsolete and has been replaced with
GetAnimationClips(GameObject)
.
注意
Deprecated. GetAnimationClips(Animation) is deprecated. Use GetAnimationClips(GameObject) instead.
public static AnimationClip[] GetAnimationClips(Animation component)

Parameters

component

Returns

Type

Description

AnimationClip[]

Remarks

This method retrieves animation clips from the Animator or Animation component. This method works with any component that has implemented the IAnimationClipSource interface.

GetAnimationClips(GameObject)

Retrieves an array of animation clips associated with a GameObject or component.
GetAnimationClips(Animation)
is obsolete and has been replaced with
GetAnimationClips(GameObject)
.
public static AnimationClip[] GetAnimationClips(GameObject gameObject)

Parameters

gameObject

Returns

Type

Description

AnimationClip[]

Remarks

This method retrieves animation clips from the Animator or Animation component. This method works with any component that has implemented the IAnimationClipSource interface.