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.Reflection; | |
| using UnityEditor; | |
| using UnityEditor.UIElements; | |
| using UnityEditorInternal; | |
| using UnityEngine; | |
| using UnityEngine.Assertions; | |
| using UnityEngine.UIElements; | |
| using PopupWindow = UnityEditor.PopupWindow; |
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 UnityEditor; | |
| using UnityEngine; | |
| using UnityEngine.UIElements; | |
| /// <summary> | |
| /// Display a modal dialog window with multiple checkboxes and buttons in the Unity Editor. | |
| /// </summary> | |
| public static class ModalDialog |
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 UnityEngine; | |
| public class PickableHandleSample : MonoBehaviour | |
| { | |
| public Vector3 startPoint = Vector3.zero; | |
| public Vector3 endPoint = Vector3.up * 3; | |
| } | |
| [CustomEditor(typeof(PickableHandleSample))] |
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; | |
| using System.Diagnostics; | |
| using Sirenix.OdinInspector.Editor; | |
| using Sirenix.Utilities.Editor; | |
| using UnityEngine; | |
| // Put the following class to the Runtime folder | |
| // Used on primary key field | |
| [Conditional("UNITY_EDITOR")] |
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; | |
| using UnityEngine.UIElements; | |
| public interface IDragAndDropDataProvider | |
| { | |
| /// <summary> | |
| /// Get data associated with current drag and drop operation. | |
| /// </summary> |
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
| // < !--Add to YOUR_PROJECT.csproj-- > | |
| // < Project Sdk = "Microsoft.NET.Sdk" > | |
| // | |
| // < !--... --> | |
| // | |
| // < ItemGroup > | |
| // < Analyzer Include = "ABSOLUTE_OR_RELATIVE_FOLDER\DontCallBaseImplementation.dll" /> | |
| // </ ItemGroup > | |
| // | |
| // < !--... --> |
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; | |
| using UnityEngine.Assertions; | |
| using UnityEngine.EventSystems; | |
| using UnityEngine.UI; | |
| using UInput = UnityEngine.Input; | |
| public interface IGraphicInputProvider | |
| { | |
| public Vector2 Drag { get; } |
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; | |
| using UnityEngine; | |
| // [CustomEditor(typeof(YOUR_COMPONENT))] | |
| public class AlertOnRemoveComponentEditor : | |
| #if ODIN_INSPECTOR | |
| Sirenix.OdinInspector.Editor.OdinEditor | |
| #else |
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; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| using UnityEngine.UIElements; | |
| public static VisualElement FindPanelRootVisualElementByPanelName(string panelName) | |
| { | |
| // UnityEngine.UIElements.UIElementsUtility.GetAllPanels | |
| // UnityEngine.UIElements.UIElementsUtility.GetPanelsIterator |
NewerOlder