Skip to content

Instantly share code, notes, and snippets.

View somedeveloper00's full-sized avatar
🏠
Working from home

Saeed Barari somedeveloper00

🏠
Working from home
  • Iran
View GitHub Profile
@somedeveloper00
somedeveloper00 / SortOrderOffset.cs
Last active April 13, 2023 07:06
A simple Unity component for the UI to add offset to an element (and it's children)
using UnityEngine;
using UnityEngine.Serialization;
#if UNITY_EDITOR
using UnityEditor;
#endif
[ExecuteAlways]
public class SortOrderOffset : MonoBehaviour {