Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using UnityEditor;
namespace NGToolsEditor.NGMissingScriptRecovery
{
using UnityEngine;
public static class MonoScriptCache
{
@Mikilo
Mikilo / CSharpMeta.cs
Last active January 27, 2022 03:32
CSharpMeta
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
namespace NGToolsEditor
{
public static class CSharpMeta
{
@Mikilo
Mikilo / gist:0f0c0549b264e6a4f7b43a2fe853949a
Created September 22, 2020 10:26
Utility.AsyncProgressBar (Unity 2019 or lower)
using UnityEditor;
using System.Reflection;
namespace NGToolsEditor
{
using UnityEngine;
[AssemblyVerifier]
public class Utility
{
@Mikilo
Mikilo / ShowIfAttribute.cs
Last active December 28, 2020 23:26
Show/HideIf attributes for Unity.
using UnityEngine;
namespace NGTools
{
public enum MultiOp
{
None = -1,
/// <summary>Checks if the field's value equals one of the requirements.</summary>
Equals,
/// <summary>Checks if the field's value differs from all the requirements.</summary>
@Mikilo
Mikilo / NGSceneCameraWindow.cs
Last active March 24, 2020 08:56
Unity Editor Scene Camera FPS Improver
// /!\ Save this script in an Editor folder /!\
// Open the window at Tools/NG Scene Camera to enable & configure the speeds.
// Use the Scroll Wheel to change speed on the fly.
// Press Ctrl to use the sub-speed.
// Use Ctrl + Scroll Wheel to change the sub-speed.
// Tested with : Unity 2019.1
using System;
using System.Collections.Generic;
using System.Reflection;