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 UnityEditor; | |
namespace OddTales.Framework.Core.EditorExtension | |
{ | |
/// <summary> | |
/// Custom inspector for Transform component. Using only DrawDefaultInspector would give different display. | |
/// Script based on Unity wiki implementation : https://wiki.unity3d.com/index.php/TransformInspector | |
/// Buttons to reset, copy, paste Transform values. |
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
// Source : https://gist.github.com/kkukshtel/3cec9473bb5eda90635f1765e259498d | |
// Modifications identified by comment starting with HACK tag | |
using UnityEngine; | |
namespace OddTales.Framework.Core.Other | |
{ | |
public static class DebugText | |
{ |
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; | |
namespace OddTales.Framework.Core.EditorExtension | |
{ | |
/// <summary> Base class with logic to extend Unity built in inspector </summary> | |
public class ExtendUnityInspector<T> : Editor | |
{ | |
/// <summary> Can be overriden for specific cases </summary> | |
protected virtual System.Type EditorType |
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 UnityEditor; | |
using UnityEditor.Animations; | |
namespace OddTales.TLN.Animations | |
{ | |
/// <summary> Add Copy/Paste context menu item for StateMachineBehaviour </summary> | |
public static class CopyPasteStateMachineBehaviour | |
{ |
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 System; | |
namespace OddTales.Framework.Core.ClassExtension | |
{ | |
/// <summary> | |
/// Invoke methods of MonoBehaviour call other methods by name. | |
/// Methods called by name is hard to track in code (you cannot find "Usages") |
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; | |
namespace OddTales.Framework.Core.ClassExtension | |
{ | |
public static class FloatExtension | |
{ | |
/// <summary> | |
/// Maps value from original range to new range | |
/// </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 UnityEngine; | |
using UnityEditor; | |
using System.Linq; | |
using UnityEngine.SceneManagement; | |
using System.Globalization; | |
namespace OddTales.Framework.Core.EditorExtension | |
{ | |
// InitializeOnLoad : force constructor call |
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 UnityEditor; | |
[InitializeOnLoad] | |
public static class OrderedSelection | |
{ | |
// For Objects ordered selection | |
private static HashSet<Object> objectsSelectionSet = new HashSet<Object>(); |
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 System.Reflection; | |
using System.Linq; | |
using UnityEngine; | |
using UnityEditor.Animations; | |
public static class AnimatorControllerExtension | |
{ | |
private static MethodInfo getEffectiveAnimatorControllerMethodInfo = null; |
OlderNewer