2021-01-19 13:59:31 +01:00
|
|
|
using Unity.Collections;
|
2021-01-19 01:18:25 +01:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace TAO.VertexAnimation
|
|
|
|
{
|
|
|
|
public class VA_Animation : ScriptableObject
|
|
|
|
{
|
2021-01-19 15:23:52 +01:00
|
|
|
public VA_AnimationData Data;
|
2021-01-19 01:18:25 +01:00
|
|
|
|
2021-01-19 15:23:52 +01:00
|
|
|
// data.name will be overwritten by this.name.
|
|
|
|
public void SetData(VA_AnimationData a_data)
|
2021-01-19 01:18:25 +01:00
|
|
|
{
|
|
|
|
Data = a_data;
|
|
|
|
}
|
|
|
|
|
2021-01-19 15:23:52 +01:00
|
|
|
public VA_AnimationData GetData()
|
2021-01-19 01:18:25 +01:00
|
|
|
{
|
2021-01-19 15:23:52 +01:00
|
|
|
// TODO: Fix data name, FixedString32 doesn't transfer from editor?
|
2021-01-19 16:35:37 +01:00
|
|
|
Data.name = new FixedString64(name);
|
2021-01-19 15:23:52 +01:00
|
|
|
return Data;
|
2021-01-19 01:18:25 +01:00
|
|
|
}
|
2021-01-19 13:59:31 +01:00
|
|
|
|
2021-01-19 16:35:37 +01:00
|
|
|
public FixedString64 GetName()
|
2021-01-19 13:59:31 +01:00
|
|
|
{
|
2021-01-19 16:35:37 +01:00
|
|
|
return new FixedString64(this.name);
|
2021-01-19 13:59:31 +01:00
|
|
|
}
|
2021-01-19 01:18:25 +01:00
|
|
|
}
|
|
|
|
}
|