mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 13:04:17 -05:00
44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using UniGLTF;
|
|
using UnityEngine;
|
|
|
|
|
|
namespace VRM
|
|
{
|
|
public class VRMImporterContext : ImporterContext
|
|
{
|
|
public UniHumanoid.AvatarDescription AvatarDescription;
|
|
public Avatar HumanoidAvatar;
|
|
public BlendShapeAvatar BlendShapeAvatar;
|
|
|
|
public glTF_VRM VRM
|
|
{
|
|
get
|
|
{
|
|
return (glTF_VRM)GLTF;
|
|
}
|
|
}
|
|
|
|
#if UNITY_EDITOR
|
|
protected override IEnumerable<Object> ObjectsForSubAsset()
|
|
{
|
|
foreach (var x in base.ObjectsForSubAsset())
|
|
{
|
|
yield return x;
|
|
}
|
|
|
|
yield return AvatarDescription;
|
|
yield return HumanoidAvatar;
|
|
yield return BlendShapeAvatar;
|
|
if (BlendShapeAvatar != null && BlendShapeAvatar.Clips != null)
|
|
{
|
|
foreach (var x in BlendShapeAvatar.Clips)
|
|
{
|
|
yield return x;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
}
|