VertexAnimation/Runtime/Scripts/VA_AnimationBookSO.cs
max 52dd9d4b3c AnimationLibrary start, AnimatorSystem parallel
Base setup animation library.
AnimatorSystem now runs in parallel.
TextureImporter preset.
2020-12-09 18:36:32 +01:00

30 lines
698 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TAO.VertexAnimation
{
[CreateAssetMenu(fileName = "new AnimationBook", menuName = "AnimationBook", order = 0)]
public class VA_AnimationBookSO : ScriptableObject
{
public int maxFrames;
public Material[] materials;
public VA_AnimationPage[] animationPages;
private void Setup()
{
// TODO: ...
// GenerateTextures.
// SetupMaterials.
}
}
[System.Serializable]
public struct VA_AnimationPage
{
public string name;
public int frames;
public Texture2D texture2D;
}
}