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
#define POSTPROCESSOR_ENABLED | |
using Newtonsoft.Json.Linq; | |
using System; | |
using System.IO; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEditorInternal; | |
using Debug = UnityEngine.Debug; |
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 UnityEditor; | |
[InitializeOnLoad] | |
public static class EditorHelper | |
{ | |
#region Constructors | |
static EditorHelper() | |
{ | |
EditorApplication.wantsToQuit += OnEditorWantsToQuit; |
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; | |
using Unity.Burst; | |
using Unity.Collections; | |
using Unity.Jobs; | |
using Unity.Mathematics; | |
using UnityEngine; | |
using Random = Unity.Mathematics.Random; | |
/* | |
* A port of Fast Poisson Disk Sampling for Unity to the Jobs System. |
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; | |
using System.Linq; | |
using UnityEngine; | |
public static partial class CsvDataGenerator | |
{ | |
#region Types | |
public class CsvFile | |
{ |
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 System.Collections; | |
using UnityEditor; | |
namespace BSGTools { | |
namespace EditorUtilities { | |
public class ZeroAll : Editor { | |
[MenuItem("GameObject/Reset/Zero All %&a")] | |
static void ResetAll() { | |
GameObject[] selection = Selection.gameObjects; |
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
[ScriptedImporter(1, "gsheet")] | |
public class GSheetImporter : ScriptedImporter | |
{ | |
#region Types | |
private class WebClientEx : WebClient | |
{ | |
#region Fields | |
private readonly CookieContainer _container; |
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; | |
using System.Diagnostics; | |
using System.IO; | |
using Unity.Logging; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEngine; | |
using Debug = UnityEngine.Debug; | |
public class BlenderSupportFunctions : AssetPostprocessor |
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
public static class SerializedPropertyUtility | |
{ | |
private static readonly MethodInfo getFieldInfoFromProperty; | |
static SerializedPropertyUtility() | |
{ | |
var scriptAttributeUtility = typeof(UnityEditor.Editor).Assembly.GetType("UnityEditor.ScriptAttributeUtility"); | |
Assert.IsNotNull(scriptAttributeUtility, "ScriptAttributeUtility != null"); | |
getFieldInfoFromProperty = scriptAttributeUtility.GetMethod(nameof(GetFieldInfoFromProperty), BindingFlags.NonPublic | BindingFlags.Static); |
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.IO; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEngine; | |
public static class SceneListExporter | |
{ | |
[DidReloadScripts] | |
[MenuItem("Assets/Generate Scene List")] |
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; | |
using Unity.Mathematics; | |
using UnityEngine; | |
[Serializable] | |
public struct AttenuationCurve | |
{ | |
#region Properties | |
[field: SerializeField] |
NewerOlder