Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnDrawGizmos()
- {
- Gizmos.color = Color.yellow;
- Gizmos.matrix = transform.localToWorldMatrix;
- var collider = transform.GetComponent<BoxCollider2D>();
- Gizmos.DrawWireCube(collider.offset, collider.size);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement