Advertisement
Guest User

plz

a guest
May 19th, 2016
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. void OnDrawGizmos()
  2. {
  3.     Gizmos.color = Color.yellow;
  4.     Gizmos.matrix = transform.localToWorldMatrix;
  5.     var collider = transform.GetComponent<BoxCollider2D>();
  6.     Gizmos.DrawWireCube(collider.offset, collider.size);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement