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?
|
2022-12-04 04:18:35 +01:00
|
|
|
Data.name = new FixedString64Bytes(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
|
|
|
|
2022-12-04 04:18:35 +01:00
|
|
|
public FixedString64Bytes GetName()
|
2021-01-19 13:59:31 +01:00
|
|
|
{
|
2022-12-04 04:18:35 +01:00
|
|
|
return new FixedString64Bytes(this.name);
|
2021-01-19 13:59:31 +01:00
|
|
|
}
|
2021-01-19 01:18:25 +01:00
|
|
|
}
|
|
|
|
}
|