This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
public static class PlaceOnGroundEditor | |
{ | |
[MenuItem("Tools/Snap to ground %&D")] | |
public static void PlaceOnGround() | |
{ | |
var transforms = new Transform[Selection.gameObjects.Length]; | |
for(int i = 0; i < transforms.Length; i++) transforms[i] = Selection.gameObjects[i].transform; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Main Component Icon, Active State Toggling and "Smart Empty Object Icon Display" | |
using UnityEditor; | |
using UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
[InitializeOnLoad] | |
class MainComponentIcon | |
{ | |
// only show these types if showAllTypes is false |