Skip to content

Instantly share code, notes, and snippets.

View ErnSur's full-sized avatar

Ernest Suryś ErnSur

View GitHub Profile
@ErnSur
ErnSur / WorldSpaceUIDocument.cs
Created December 2, 2022 15:25 — forked from Anthelmed/WorldSpaceUIDocument.cs
Until Unity decide to make it official, this is a custom WorldSpaceUIDocument component
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.Rendering;
using UnityEngine.UIElements;
using UnityEngine.InputSystem.UI;
#if UNITY_EDITOR
using UnityEditor;
#endif
@ErnSur
ErnSur / CustomRectHandles.cs
Created August 27, 2021 06:31 — forked from yasirkula/CustomRectHandles.cs
Drawing Rect handles in Unity (similar to built-in Rect tool)
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;
public class CustomRectHandles : ScriptableObject
{
public class Rect3D
{