VertexAnimation/Runtime/Scripts/VA_Animation.cs
max 3e69eb9d84 Tmp Fix FixedString32 being zero at runtime.
Tmp Fix FixedString32 being zero at runtime.
2021-01-19 15:23:52 +01:00

28 lines
545 B
C#

using Unity.Collections;
using UnityEngine;
namespace TAO.VertexAnimation
{
public class VA_Animation : ScriptableObject
{
public VA_AnimationData Data;
// data.name will be overwritten by this.name.
public void SetData(VA_AnimationData a_data)
{
Data = a_data;
}
public VA_AnimationData GetData()
{
// TODO: Fix data name, FixedString32 doesn't transfer from editor?
Data.name = new FixedString32(name);
return Data;
}
public FixedString32 GetName()
{
return new FixedString32(this.name);
}
}
}