Guest User

Untitled

a guest
Feb 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. [RequireComponent(typeof(Rigidbody2D))]
  2. public class Example : MonoBehaviour
  3. {
  4. void OnValidate()
  5. {
  6. GetComponent<Rigidbody2D>().bodyType = RigidbodyType2D.Dynamic;
  7. }
  8. }
Add Comment
Please, Sign In to add comment