Skip to content

Instantly share code, notes, and snippets.

View Legogo's full-sized avatar

André Berlemont Legogo

View GitHub Profile
@romainPechot
romainPechot / SetActiveGameObject.cs
Created April 21, 2015 12:53
An Unity editor tool shortcut to quickly de-activate the gameObject(s) selected.
using UnityEngine;
using UnityEditor;
using System.Collections;
public class SetActiveGameObject : Editor
{
[MenuItem("Tools/On-Off GameObject %g")]
private static void EnableDisableGameObject()
{
// fetch