Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public bool GetBounds(out Vector3 minBounds, out Vector3 maxBounds)
  2. {
  3. var sceneObjects = GetData().GetArray("m_sceneObjects");
  4. if (sceneObjects.Length == 0)
  5. {
  6. minBounds = maxBounds = new Vector3(0, 0, 0);
  7. return false;
  8. }
  9.  
  10. minBounds = sceneObjects[0].GetSubCollection("m_vMinBounds").ToVector3();
  11. maxBounds = sceneObjects[0].GetSubCollection("m_vMaxBounds").ToVector3();
  12.  
  13. return true;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement