mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-13 14:29:38 -05:00
書こうとしていたのは、こんな感じ
This commit is contained in:
@@ -13,16 +13,19 @@ namespace UniGLTF
|
||||
static List<AnimationClip> GetAnimationClips(GameObject Copy)
|
||||
{
|
||||
var clips = new List<AnimationClip>();
|
||||
|
||||
var animator = Copy.GetComponent<Animator>();
|
||||
var animation = Copy.GetComponent<Animation>();
|
||||
if (animator != null)
|
||||
{
|
||||
clips = AnimationExporter.GetAnimationClips(animator);
|
||||
clips.AddRange(AnimationExporter.GetAnimationClips(animator));
|
||||
}
|
||||
|
||||
var animation = Copy.GetComponent<Animation>();
|
||||
if (animation != null)
|
||||
{
|
||||
clips = AnimationExporter.GetAnimationClips(animation);
|
||||
clips.AddRange(AnimationExporter.GetAnimationClips(animation));
|
||||
}
|
||||
|
||||
return clips;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user