GUIStyle mystyle = new GUIStyle("some string from the list below");
- "CN Box"
- "Button"
| using UnityEngine; | |
| using System.Collections; | |
| using UnityEditor; | |
| [CustomEditor (typeof(TriggerContainer))] | |
| public class TriggerContainerEditor : Editor | |
| { | |
| private SerializedObject obj; |
| // CreatePlane | |
| // Credit: http://wiki.unity3d.com/index.php?title=CreatePlane | |
| // 1. Using the inspector, create a new C# script. | |
| // 2. Name the script "CreatePlane" and place it in a folder titled "Editor". | |
| // 3. A new menu option titled "Custom Plane" will appear in "GameObject > Create Other". | |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections; |
| using UnityEngine; | |
| using System.Collections; | |
| public class MonoBehaviourSingleton<T> : MonoBehaviour | |
| where T : Component | |
| { | |
| private static T _instance; | |
| public static T Instance { | |
| get { | |
| if (_instance == null) { |
| /* | |
| * Created by C.J. Kimberlin | |
| * | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2019 | |
| * | |
| * 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 |
| /** | |
| * Easing | |
| * Animates the value of a float property between two target values using | |
| * Robert Penner's easing equations for interpolation over a specified Duration. | |
| * | |
| * Original Author: Darren David darren-code@lookorfeel.com | |
| * | |
| * Ported to be easily used in Unity by Marco Mastropaolo | |
| * | |
| * Credit/Thanks: |
| using UnityEngine; | |
| /* | |
| * Swipe Input script for Unity by @fonserbc, free to use wherever | |
| * | |
| * Attack to a gameObject, check the static booleans to check if a swipe has been detected this frame | |
| * Eg: if (SwipeInput.swipedRight) ... | |
| * | |
| * | |
| */ |
| // Developed by Tom Kail at Inkle | |
| // Released under the MIT Licence as held at https://opensource.org/licenses/MIT | |
| // Must be placed within a folder named "Editor" | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using UnityEditor; | |
| using UnityEngine; |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using Debug = UnityEngine.Debug; | |
| using Object = UnityEngine.Object; | |
| namespace FoundationEditor.Editor.ReferenceFinder | |
| { |
| // | |
| // Copyright (c) 2017 eppz! mobile, Gergely Borbás (SP) | |
| // | |
| // http://www.twitter.com/_eppz | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | |
| // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A | |
| // PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
| // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | |
| // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE |