GpuEcsAnimatedMeshComponents.cs 547 B

123456789101112131415161718192021222324
  1. using Unity.Entities;
  2. using Unity.Mathematics;
  3. using Unity.Rendering;
  4. namespace GPUECSAnimationBaker.Engine.AnimatorSystem
  5. {
  6. public struct GpuEcsAnimatedMeshComponent : IComponentData
  7. {
  8. public Entity animatorEntity;
  9. }
  10. [MaterialProperty("_AnimationState")]
  11. public struct GpuEcsMaterialAnimationState : IComponentData
  12. {
  13. public float4x4 Value;
  14. }
  15. [MaterialProperty("_EnableAnimation")]
  16. public struct GpuEcsMaterialEnableAnimation : IComponentData
  17. {
  18. public float Value;
  19. }
  20. }