Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEditor;
- using UnityEngine;
- public class RandomRotate {
- [MenuItem ("GameObject/Random Rotation")]
- static void RandomRotation () {
- foreach (var t in Selection.transforms) {
- Undo.RecordObject( t, "Random Rotation");
- t.rotation = Random.rotation;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment