mirror of
				https://github.com/maxartz15/VertexAnimation.git
				synced 2025-10-31 00:35:42 +01:00 
			
		
		
		
	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;
 | |
|     }
 | |
| 
 | |
| } |