Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ECSRect.cs 397B

12345678910111213141516171819
  1. #if UNITY_5 || UNITY_5_3_OR_NEWER
  2. using UnityEngine;
  3. namespace Svelto.ECS.Components.Unity
  4. {
  5. public struct ECSRect
  6. {
  7. public float x, y, width, height;
  8. public ECSRect(Rect imageUvRect)
  9. {
  10. x = imageUvRect.x;
  11. y = imageUvRect.y;
  12. width = imageUvRect.width;
  13. height = imageUvRect.height;
  14. }
  15. }
  16. }
  17. #endif