Components.cs 645 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #if ENABLE_ENTITIES
  2. using Unity.Entities;
  3. using Unity.Mathematics;
  4. namespace UnityEngine.U2D.Animation
  5. {
  6. [InternalBufferCapacity(0)]
  7. struct Vertex : IBufferElementData
  8. {
  9. public float3 Value;
  10. }
  11. [InternalBufferCapacity(0)]
  12. struct BoneTransform : IBufferElementData
  13. {
  14. public float4x4 Value;
  15. }
  16. struct WorldToLocal : IComponentData
  17. {
  18. public float4x4 Value;
  19. }
  20. struct SpriteComponent : ISharedComponentData
  21. {
  22. public Sprite Value;
  23. }
  24. struct BoundsComponent : IComponentData
  25. {
  26. public float4 center;
  27. public float4 extents;
  28. }
  29. }
  30. #endif