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 UnityEditor.SceneManagement; | |
| using UnityEngine.SceneManagement; | |
| using System.IO; | |
| /// <summary> | |
| /// Workaround for bug: https://issuetracker.unity3d.com/issues/scene-asset-label-disappears-when-the-scene-is-saved | |
| /// Saves the scene's label before and re-applies them after saving. | |
| /// Will log if the labels are preserved and this workaround is no longer necessary. |
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
| #!/bin/bash | |
| ## basic | |
| set -e -o pipefail | |
| cmd="get-opts.sh" | |
| RED='01;38;5;196' |
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.Collections.Generic; | |
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEditor.SceneManagement; | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| using vietlabs.fr2; | |
| // I was frustrated with the fact that RectTransform fields are often marked as overriden when prefab instances |
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.Collections.Generic; | |
| using System.Text; | |
| using UnityEngine.LowLevel; | |
| using static UnityEngine.LowLevel.PlayerLoopSystem; | |
| public static class PlayerLoopExtensions | |
| { | |
| public static Type GetParentSystemType<T>(this PlayerLoopSystem playerLoop) | |
| { |
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; | |
| using UnityEditor; | |
| public static class EditorUtils | |
| { | |
| private const BindingFlags AllBindingFlags = (BindingFlags)(-1); | |
| /// <summary> | |
| /// Returns attributes of type <typeparamref name="TAttribute"/> on <paramref name="serializedProperty"/>. |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine.UIElements; | |
| namespace NS.RomanLib | |
| { | |
| public class RadialFillElement: VisualElement, INotifyValueChanged<float> | |
| { | |
| protected float m_value = float.NaN; |
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 UnityEngine; | |
| #if UNITY_2020_1_OR_NEWER | |
| // good to go | |
| #else | |
| #error "Optional<T> plugin requires Unity 2020.1 or above for it to work. On below versions serializing fields of generic types was not possible." | |
| #endif | |
| [Serializable] |
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 UnityEditor; | |
| using UnityEditor.Callbacks; | |
| #if UNITY_IOS | |
| using UnityEditor.iOS.Xcode; | |
| #endif | |
| using UnityEngine; | |
| public static class AddLanguagesPostBuildIOS { | |
| [PostProcessBuild(int.MaxValue)] |