mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2024-11-14 00:05:35 +01:00
max
52dd9d4b3c
Base setup animation library. AnimatorSystem now runs in parallel. TextureImporter preset.
30 lines
698 B
C#
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;
|
|
}
|
|
|
|
} |