mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2024-11-14 16:25:32 +01:00
22 lines
516 B
C#
22 lines
516 B
C#
|
using Unity.Entities;
|
|||
|
using Unity.Mathematics;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace TAO.VertexAnimation
|
|||
|
{
|
|||
|
|
|||
|
public class VA_AnimationDataComponentAuthoring : MonoBehaviour
|
|||
|
{
|
|||
|
public float4 Color;
|
|||
|
}
|
|||
|
|
|||
|
public class VA_AnimationDataBaker : Baker < VA_AnimationDataComponentAuthoring >
|
|||
|
{
|
|||
|
public override void Bake( VA_AnimationDataComponentAuthoring authoring )
|
|||
|
{
|
|||
|
//Entity parent = GetEntity( authoring.RootParent );
|
|||
|
AddComponent( new VaAnimationDataComponent{ Value = authoring.Color} );
|
|||
|
}
|
|||
|
}
|
|||
|
}
|