BGRGameObjectInfo.cs 426 B

12345678910111213141516171819
  1. using Unity.Mathematics;
  2. using UnityEngine;
  3. namespace Core.BRG
  4. {
  5. [System.Serializable]
  6. public class BGRGameObjectInfo
  7. {
  8. public int initIndex;
  9. public Vector3 pos;
  10. public Vector3 rot;
  11. public Vector3 scale;
  12. public float4 color=1;
  13. public Matrix4x4 objectToWorld
  14. {
  15. get { return Matrix4x4.TRS(pos, Quaternion.Euler(rot), scale); }
  16. }
  17. }
  18. }