Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1.  
  2. using UnityEngine;
  3. using UnityEditor;
  4.  
  5. public class LayerChanger : ScriptableObject
  6. {
  7.     const string kTagrName = "Wall";
  8.  
  9.     [MenuItem ("GameObject/Set selection tag to " + kTagName)]
  10.     static void Run ()
  11.     {
  12.         foreach (GameObject gameObject in Selection.gameObjects)
  13.         {
  14.             gameObject.tag = kTagName;
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement