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
namespace UnityEngine.UIElements | |
{ | |
public class Scope : IDisposable | |
{ | |
public static VisualElement CurrentRoot { get; private set; } | |
public readonly VisualElement root; | |
private VisualElement _previousRoot; |
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
[CustomPropertyDrawer(typeof(Object<>))] | |
public class SerializableInterfaceDrawer : PropertyDrawer | |
{ | |
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) | |
{ | |
var serializedValueProperty = property.FindPropertyRelative("serializedValue"); | |
var interfaceType = fieldInfo.FieldType.GetGenericArguments()[0]; | |
serializedValueProperty.objectReferenceValue = |
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
{ | |
"packages": [ | |
{ | |
"name": "Window Cloner", | |
"url": "https://github.com/ErnSur/WindowCloner.git" | |
}, | |
{ | |
"name": "Baking Tools", | |
"url": "https://github.com/ErnSur/BakingTools.git" | |
}, |
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
/// <summary> | |
/// int struct that goes back to 0 when value equals max | |
/// and goes back to max when equals -1 | |
/// </summary> | |
public struct LoopingInt | |
{ | |
public int max; | |
private int _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
using UnityEngine; | |
using System.Linq; | |
public abstract class Dice | |
{ | |
protected Side[] Sides { get; } | |
public Dice(Side[] sides) | |
{ | |
Sides = sides; |
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
public static string[] GetScenes() => | |
( | |
from scene in EditorBuildSettings.scenes | |
where scene.enabled | |
select scene.path | |
).ToArray(); |
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
/(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:(\w)(?:(\d+))?)?/ |
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.Text.RegularExpressions; | |
using UnityEditor; | |
namespace QuickEye.Editor | |
{ | |
public class SerializedArrayProperty : IReadOnlyList<SerializedProperty>, IList | |
{ |
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.Collections.Generic; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
public class CustomRectHandles : ScriptableObject | |
{ | |
public class Rect3D | |
{ |
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 UnityEditor; | |
using UnityEngine; | |
using System.IO; | |
using System.Linq; | |
using System.Diagnostics; | |
using Debug = UnityEngine.Debug; | |
// Modified version of https://github.com/karl-/unity-symlink-utility | |
// I added option to create symlinks in Pakcages folder |
OlderNewer