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; | |
[ExecuteInEditMode] | |
public class CameraController : MonoBehaviour | |
{ | |
public Transform target = null; | |
public float distanceFromTarget = 10.0f; | |
public float elevationFromTarget = 5.0f; |
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.Generic; | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.IMGUI.Controls; | |
public static class SceneHierarchyWindowUtility | |
{ |
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; | |
public class OrbitPivot : MonoBehaviour | |
{ | |
public float sensitivity = 10f; | |
private void LateUpdate() | |
{ | |
if(Input.GetMouseButton(1)) |
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.Generic; | |
using UnityEngine; | |
public static class ArrayExtensions | |
{ | |
public static T GetRandom<T>(this T[] array) | |
{ | |
return array[Random.Range(0, array.Length - 1)]; |
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; | |
public enum eBackgroundType | |
{ | |
Skybox = 0, | |
Color = 1 | |
} | |
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; | |
public class ProgressBarAttribute : PropertyAttribute | |
{ | |
public string name = "Float"; | |
public ProgressBarAttribute(string name) | |
{ | |
this.name = name; |
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 UnityEngine.Rendering; | |
using System.Collections.Generic; | |
[System.Serializable] | |
public class RendererShadowLightSetup | |
{ | |
[SerializeField] | |
private ShadowCastingMode shadowCastingMode = ShadowCastingMode.TwoSided; | |
public ShadowCastingMode SHADOW_CASTIN_MODE { get { return shadowCastingMode; } } |
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; | |
public class ReplaceMesh : EditorWindow | |
{ | |
[MenuItem("Window/Help/Mesh/Replace")] | |
private static void Init() | |
{ |
NewerOlder