Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEditor;
- public class LayerChanger : ScriptableObject
- {
- const string kTagrName = "Wall";
- [MenuItem ("GameObject/Set selection tag to " + kTagName)]
- static void Run ()
- {
- foreach (GameObject gameObject in Selection.gameObjects)
- {
- gameObject.tag = kTagName;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement