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
| //@version=4 | |
| study(title="CTO Line", shorttitle="CTO", overlay=true, resolution="") | |
| smma(src, length) => | |
| smma = 0.0 | |
| smma := na(smma[1]) ? sma(src, length) : (smma[1] * (length - 1) + src) / length | |
| smma | |
| v1 = smma(hl2, 15) | |
| m1 = smma(hl2, 19) | |
| m2 = smma(hl2, 25) | |
| v2 = smma(hl2, 29) |
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
| // Place inside an "Editor" folder | |
| #if PLATFORM_STANDALONE_WIN | |
| using System; | |
| using System.IO; | |
| using UnityEditor; | |
| using UnityEditor.Callbacks; | |
| using UnityEngine; | |
| public static class FbxBlenderOpeningProcessor | |
| { |
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.Reflection; | |
| using UnityEditor; | |
| using UnityEngine; | |
| /// <summary> | |
| /// Toggles the Inspector lock state and the Constrain Proportions lock state. | |
| /// </summary> | |
| public static class LockInspector { | |
| static readonly MethodInfo flipLocked; | |
| static readonly PropertyInfo constrainProportions; |
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 UnityEditor; | |
| using UnityEngine; | |
| namespace Junk.Utilities | |
| { | |
| /// <summary> | |
| /// Thanks to Ryiah and the collective stolen knowledge of the internet via chatgpt | |
| /// https://forum.unity.com/threads/still-no-search-field-in-the-inspector.1555850/#post-9697247 |
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 UnityEditor; | |
| using UnityEngine; | |
| // Put this in an Editor folder | |
| [InitializeOnLoad] | |
| public class FixUnityBrokenSelectionBase : Editor { | |
| static List<Object> newSelection; | |
| static Object[] lastSelection = { }; |
OlderNewer