This file contains 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 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; |
This file contains 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 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)] |