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.Collections; | |
using UnityEngine; | |
/// <summary> | |
/// Simple component that allows users to write comments to place on MonoBehaviours. Mainly for testmaps. | |
/// </summary> | |
public class CommentComponent : MonoBehaviour | |
{ | |
[TextArea(3, 10)] | |
[SerializeField] |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
/// <summary> | |
/// Selection history window watches the selection and adds Forward and Back buttons to navigate previous selections. | |
/// </summary> | |
public class SelectionHistoryWindow : EditorWindow, IHasCustomMenu | |
{ |
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.Diagnostics; | |
using System.Text; | |
public static class ProcessExtensions | |
{ | |
/* Properties ============================================================================================================= */ | |
/* Methods ================================================================================================================ */ | |
/// <summary> |
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.Collections.Generic; | |
using RedBlueGames.Tools.SaveGame; | |
using UnityEngine; | |
using UnityEditor; | |
/// <summary> | |
/// Assign new SavableGUIDs when they are imported | |
/// </summary> | |
public class SaveableGUIDImporter : 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
/* MIT License | |
Copyright (c) 2016 RedBlueGames | |
*/ | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEditor.Build.Reporting; | |
public class BuildToolExample : MonoBehaviour | |
{ |
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.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using RedBlueGames.Tools.TextTyper; | |
public class CVExample : MonoBehaviour | |
{ | |
[SerializeField] | |
private InputField textInputField; |
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
/* MIT License | |
Copyright (c) 2016 RedBlueGames | |
Code written by Doug Cox | |
*/ | |
using System; | |
using UnityEngine; | |
/// <summary> | |
/// GitException includes the error output from a Git.Run() command as well as the |
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
[System.Serializable] | |
private struct MyEditorToolPreferences | |
{ | |
// Private fields with the SerializeField attribute will be saved | |
[SerializeField] | |
private int savedInt; | |
// Public fields are also serializable (though I prefer private with the attribute) | |
public bool SavedBool; | |
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
Shader "RedBlueGames/Lighting/LightMapCutout" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_DarknessColor ("Darkness Color", Color) = (0,0,0.18,.24) | |
} | |
SubShader | |
{ |
NewerOlder