mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2024-11-10 06:35:18 +01:00
28 lines
557 B
C#
28 lines
557 B
C#
using Unity.Collections;
|
|
using UnityEngine;
|
|
|
|
namespace TAO.VertexAnimation
|
|
{
|
|
public class 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 FixedString64Bytes(name);
|
|
return Data;
|
|
}
|
|
|
|
public FixedString64Bytes GetName()
|
|
{
|
|
return new FixedString64Bytes(this.name);
|
|
}
|
|
}
|
|
} |