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; | |
using UnityEditor.SceneManagement; | |
using UnityEngine.Localization.Settings; | |
using UnityEngine.SceneManagement; | |
[InitializeOnLoad] | |
public static class EditorBootScene | |
{ | |
static EditorBootScene() | |
{ |
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.Linq; | |
using UnityEngine; | |
using UnityEngine.LowLevel; | |
using UnityEngine.PlayerLoop; | |
using static UnityEngine.PlayerLoop.PreLateUpdate; | |
public class ChangePlayerLoop : MonoBehaviour | |
{ | |
public bool defaultLoop = true; |
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; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
public class TextEditorWindow : EditorWindow | |
{ | |
VisualElement m_Suggestion; | |
TextField m_TextField; | |
[MenuItem("Test/Window")] |
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; | |
using UnityEditor.AnimatedValues; | |
using UnityEngine; | |
public class IMGUIWindow : EditorWindow | |
{ | |
[MenuItem("Test/Window")] | |
static void ShowWn() | |
{ | |
CreateWindow<IMGUIWindow>(); |
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.Localization; | |
using UnityEditor.Localization.Plugins.Google.Columns; | |
using UnityEngine.Localization; | |
using UnityEngine.Localization.Metadata; | |
using UnityEngine.Localization.Tables; | |
public class SmartStringColumn : LocaleMetadataColumn<SmartFormatTag> | |
{ | |
public override PushFields PushFields => PushFields.Value; |
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
/* | |
* Legacy Particle System Updater | |
* A tool that can be used to convert Legacy Particle Systems into new Particle System Components. | |
* https://forum.unity.com/threads/release-legacy-particle-system-updater.510879/ | |
* | |
* v1.0 | |
* Initial release | |
* | |
* v1.1 | |
* Fixed incorrect billboard mode |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using NUnit.Framework; | |
namespace UnityEditor.Localization | |
{ | |
static class SerializedPropertyExtensionMethods |
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
Vector3 RelativeMouseAt() | |
{ | |
var mouseOverWindow = EditorWindow.mouseOverWindow; | |
System.Reflection.Assembly assembly = typeof(UnityEditor.EditorWindow).Assembly; | |
Type type = assembly.GetType("UnityEditor.GameView"); | |
int displayID = 0; | |
if (type.IsInstanceOfType(mouseOverWindow)) | |
{ | |
var displayField = type.GetField("m_TargetDisplay", BindingFlags.NonPublic | BindingFlags.Instance); |
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 UnityEngine.LowLevel; | |
using UnityEngine.PlayerLoop; | |
public static class AddPlayerLoopCallback | |
{ | |
// Add a callback to the PreUpdate phase | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
static void Setup() | |
{ |
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; | |
using UnityEngine.LowLevel; | |
using UnityEngine.UIElements; | |
public class ShowPlayerLoopWindow : EditorWindow | |
{ | |
[MenuItem("Window/Player Loop")] | |
static void ShowWindow() | |
{ | |
var wind = GetWindow<ShowPlayerLoopWindow>(false, "Player Loop"); |