using System.Collections.Generic; using UnityEngine; namespace TAO.VertexAnimation { [CreateAssetMenu(fileName = "new AnimationLibrary", menuName = "TAO/VertexAnimation/AnimationLibrary", order = 400)] public class VA_AnimationLibrary : ScriptableObject { [SerializeField] private List animationBooks = new List(); [HideInInspector] public List animationData = null; public void Init() { animationData = new List(); foreach (VA_AnimationBook book in animationBooks) { book.SetMaterials(); foreach (VA_Animation animation in book.animations) { animationData.Add(animation.Data); } } } private void OnValidate() { // TODO: Check for naming conflicts in AnimationBooks. } } }