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
| /* | |
| MIT License | |
| Copyright (c) 2021 Chillu | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
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; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| // by @kurtdekker - to make a Unity singleton that has some | |
| // prefab-stored, data associated with it, eg a music manager | |
| // | |
| // To use: access with SingletonViaPrefab.Instance | |
| // | |
| // To set up: |
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
| // Reference: https://github.com/Bunny83/UUID/blob/master/UUID.cs | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using UnityEngine; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| #endif |
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
| #if UNITY_EDITOR | |
| using System; | |
| using System.Reflection; | |
| using UnityEditor; | |
| using UnityEngine; | |
| /// <summary> | |
| /// Little utility for opening a "Game" view in fullscreen. Will be opened on whatever Unity thinks is the "main" | |
| /// monitor at the moment. The hotkey will toggle the window; however, if for some reason this breaks, fullscreen |
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; | |
| /// <summary> | |
| /// This window shows how you can listen for and consume user input events | |
| /// from the Scene View. Super useful for making editor tools! | |
| /// </summary> | |
| public class SceneViewControlWindow : EditorWindow | |
| { | |
| /// <summary> |
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
| // Resource Checker | |
| // (c) 2012 Simon Oliver / HandCircus / hello@handcircus.com | |
| // (c) 2015 Brice Clocher / Mangatome / hello@mangatome.net | |
| // Public domain, do with whatever you like, commercial or not | |
| // This comes with no warranty, use at your own risk! | |
| // https://github.com/handcircus/Unity-Resource-Checker | |
| // (c) 2019 NoiseCrime | |
| // Quick update to use native Unity methods to obtain the size of textures. | |
| // Looking through the code much has changed since this class was first created | |
| // as such it requires a full rewrite to fix various issues and robustly deal |
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.Reflection; | |
| using UnityEngine; | |
| /// Access Unity.Recorder window through reflection | |
| public static class RecordingExtensions | |
| { | |
| /// Start recording video using settings from the Recorder window | |
| public static void StartRecording() => StartStopRecording("StartRecording"); | |
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 UnityEngine; | |
| using UnityEditor; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| //https://answers.unity.com/questions/510945/find-materials-that-use-a-certain-shader.html | |
| public class ShaderOccurenceWindow : EditorWindow { | |
| [MenuItem ("Tools/Shader Occurence")] | |
| public static void Open () { |
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
| /* MIT License | |
| Copyright (c) 2022 Alex Holkner | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
NewerOlder