This file contains hidden or 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
| //#define SHADER_COMPILATION_LOGGING | |
| //#define SKIP_SHADER_COMPILATION | |
| using System.Collections.Generic; | |
| using UnityEditor.Build; | |
| using UnityEditor.Rendering; | |
| using UnityEngine; | |
| using UnityEngine.Rendering; | |
| public class ShaderStripper : IPreprocessShaders |
This file contains hidden or 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; | |
| using System.Collections; | |
| using System.Reflection; | |
| using UnityEditor; | |
| // Credit: http://answers.unity.com/answers/425602/view.html (I've only slightly modified the code) | |
| public static class SerializedPropertyRawValueGetter | |
| { | |
| public static object GetRawValue( this SerializedProperty property ) | |
| { |
This file contains hidden or 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; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Reflection; | |
| using UnityEditor; | |
| using UnityEngine; | |
| namespace MultiScreenshotCaptureNamespace | |
| { | |
| internal static class ReflectionExtensions |
This file contains hidden or 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
| #define STOP_EXTRACTION_WHEN_WINDOW_CLOSED | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.IO.Compression; | |
| using System.Reflection; | |
| using System.Text; | |
| using System.Threading; | |
| using UnityEditor; |
This file contains hidden or 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; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| #if UNITY_2017_4 || UNITY_2018_2_OR_NEWER | |
| using UnityEngine.U2D; | |
| #endif | |
| using Sprites = UnityEngine.Sprites; | |
| #if UNITY_EDITOR |
This file contains hidden or 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.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| namespace ScriptedAnim | |
| { | |
| // Hide from Add Component menu | |
| [AddComponentMenu( "" )] | |
| public class ScriptedAnimations : MonoBehaviour | |
| { |
This file contains hidden or 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
| #define COMPARE_FILE_CONTENTS | |
| #if COMPARE_FILE_CONTENTS | |
| #define USE_THREADS | |
| #endif | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| #if USE_THREADS | |
| using System.Threading; |
This file contains hidden or 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 UnityEditor; | |
| using UnityEngine; | |
| public class UIToggler | |
| { | |
| private const int UI_LAYER = 1 << 5; | |
| [InitializeOnLoadMethod] | |
| private static void Init() | |
| { |
This file contains hidden or 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.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public static class EmptyParentCreator | |
| { | |
| [MenuItem( "GameObject/Create Empty Parent", priority = 0 )] | |
| private static void CreateEmptyParent( MenuCommand command ) | |
| { | |
| // This happens when this button is clicked via hierarchy's right click context menu |
This file contains hidden or 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.Collections.Generic; | |
| using UnityEngine; | |
| public static class BetterWaitForSeconds | |
| { | |
| private class WaitForSeconds : CustomYieldInstruction | |
| { | |
| private float waitUntil; | |
| public override bool keepWaiting | |
| { |