Skip to content

Instantly share code, notes, and snippets.

View nicoplv's full-sized avatar

Nicolas Pierre-Loti-Viaud nicoplv

View GitHub Profile
@nicoplv
nicoplv / GroupUtility.cs
Created August 25, 2017 09:58
Group maker for Unity Editor
using UnityEditor;
using UnityEngine;
namespace SmartEditor
{
public class GroupUtility : Editor
{
[MenuItem("Edit/Group %g", false, 0)]
public static void Group()
{
@nicoplv
nicoplv / PlayMode.cs
Last active February 27, 2024 03:15
Full screen game view on Unity editor (works only with 2017.2 or +)
using UnityEditor;
using UnityEngine;
namespace FullScreenPlayModes
{
[InitializeOnLoad]
public class FullScreenPlayMode : Editor
{
//The size of the toolbar above the game view, excluding the OS border.
private static int toolbarHeight = 22;
@nicoplv
nicoplv / PlayFromScene.cs
Last active June 20, 2018 13:14
Editor script to make Play button always start a main scene in Unity 3D (works only with 2017.2 or +)
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
namespace SmartEditors
{
[InitializeOnLoad]
public class PlayFromScene : Editor
{
[MenuItem("Tools/Editor/Play From Scene/Set Main Scene", false, 0)]