mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-26 21:01:15 -05:00
Add animationClip property.
This commit is contained in:
@@ -18,7 +18,7 @@ namespace UniGLTF
|
||||
|
||||
/// <summary>
|
||||
/// Runtime resources.
|
||||
/// ex. Material, Texture, Mesh.
|
||||
/// ex. Material, Texture, AnimationClip, Mesh.
|
||||
/// </summary>
|
||||
public IReadOnlyList<(SubAssetKey, UnityEngine.Object)> RuntimeResources => _resources;
|
||||
|
||||
@@ -32,6 +32,11 @@ namespace UniGLTF
|
||||
/// </summary>
|
||||
public IReadOnlyList<Texture> Textures => _textures;
|
||||
|
||||
/// <summary>
|
||||
/// Animation Clips.
|
||||
/// </summary>
|
||||
public IReadOnlyList<AnimationClip> AnimationClips => _animationClips;
|
||||
|
||||
/// <summary>
|
||||
/// Meshes.
|
||||
/// </summary>
|
||||
@@ -56,6 +61,7 @@ namespace UniGLTF
|
||||
private readonly List<(SubAssetKey, UnityEngine.Object)> _resources = new List<(SubAssetKey, UnityEngine.Object)>();
|
||||
private readonly List<Material> _materials = new List<Material>();
|
||||
private readonly List<Texture> _textures = new List<Texture>();
|
||||
private readonly List<AnimationClip> _animationClips = new List<AnimationClip>();
|
||||
private readonly List<Mesh> _meshes = new List<Mesh>();
|
||||
private readonly List<Renderer> _renderers = new List<Renderer>();
|
||||
private readonly List<MeshRenderer> _meshRenderers = new List<MeshRenderer>();
|
||||
@@ -78,6 +84,9 @@ namespace UniGLTF
|
||||
case Texture texture:
|
||||
loaded._textures.Add(texture);
|
||||
break;
|
||||
case AnimationClip animationClip:
|
||||
loaded._animationClips.Add(animationClip);
|
||||
break;
|
||||
case Mesh mesh:
|
||||
loaded._meshes.Add(mesh);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user