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.Linq; | |
| using System.Text; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using UDebug = UnityEngine.Debug; | |
| public static class AnimationClipCurveTool | |
| { | |
| #region Playable Binding |
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; | |
| using UnityEditor.Animations; | |
| using UnityEngine; | |
| using Object = UnityEngine.Object; | |
| // NOTE: The Reflector.cs is here: https://gist.github.com/SolarianZ/e8980ee322182a76745e6cb5aac99b4d | |
| // Usage(function calling hierarchy): | |
| // 1. YourCustomInpector.OnEnable() -> _motionPreview = new MotionPreview(); | |
| // 2. YourCustomInpector.OnPreviewSettings() -> _motionPreview.OnPreviewSettings(); |
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; | |
| using System.Reflection; | |
| public static class Reflector | |
| { | |
| public const BindingFlags DefaultBindingFlags = BindingFlags.Instance | BindingFlags.Static | | |
| BindingFlags.Public | BindingFlags.NonPublic; | |
| #region Type/Instance |
NewerOlder