Skip to content

Instantly share code, notes, and snippets.

View novavision's full-sized avatar

Roman Ivanicky novavision

View GitHub Profile
@adammyhre
adammyhre / InspectorLock.cs
Last active October 23, 2024 01:54
Lock Inspector Icon and Transform Constrain Proportion Icon in Unity
using System.Reflection;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Toggles the Inspector lock state and the Constrain Proportions lock state.
/// </summary>
public static class LockInspector {
static readonly MethodInfo flipLocked;
static readonly PropertyInfo constrainProportions;
@nicoplv
nicoplv / ReimportAsset.cs
Last active May 18, 2018 10:06
Automatize the reimportation of working file from a folder ended with '~' (a demo video is available here https://youtu.be/S-yyK3Fzw3c)
using UnityEngine;
using UnityEditor;
using System.Text.RegularExpressions;
using System.IO;
public class ReimportAsset : MonoBehaviour
{
#region MenuItem Methods
[MenuItem("Assets/Reimport from ~ &R", false, priority = 40)]