GUIStyle mystyle = new GUIStyle("some string from the list below");
- "CN Box"
- "Button"
/* | |
* 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 |
using UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
[CustomEditor (typeof(TriggerContainer))] | |
public class TriggerContainerEditor : Editor | |
{ | |
private SerializedObject obj; |
// 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 UnityEngine; | |
[RequireComponent( typeof(Camera) )] | |
public class FlyCamera : MonoBehaviour { | |
public float acceleration = 50; // how fast you accelerate | |
public float accSprintMultiplier = 4; // how much faster you go when "sprinting" | |
public float lookSensitivity = 1; // mouse look sensitivity | |
public float dampingCoefficient = 5; // how quickly you break to a halt after you stop your input | |
public bool focusOnEnable = true; // whether or not to focus and lock cursor immediately on enable |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
namespace MultiScreenshotCaptureNamespace | |
{ | |
internal static class ReflectionExtensions |
using UnityEngine; | |
using UnityEditor.Build; | |
using UnityEditor.Build.Reporting; | |
using UnityEditor; | |
using UnityEditor.iOS.Xcode; | |
using System.IO; | |
public class ExcemptFromEncryption : IPostprocessBuildWithReport // Will execute after XCode project is built | |
{ | |
public int callbackOrder { get { return 0; } } |
// Launch Arc Renderer for Unity 3D from this Tutorial (with minor fixes): | |
// https://www.youtube.com/watch?v=iLlWirdxass | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[RequireComponent (typeof(LineRenderer))] | |
public class LaunchArcRenderer : MonoBehaviour { |
/** | |
* 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) ... | |
* | |
* | |
*/ |