Skip to content

Instantly share code, notes, and snippets.

View nukadelic's full-sized avatar
☣️

Nukadelic nukadelic

☣️
View GitHub Profile
@nukadelic
nukadelic / EditorFontSize.cs
Last active May 2, 2024 18:45
Unity Editor Font Size Changer -- EditorStyles
#if UNITY_EDITOR
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
public class EditorFontSize : EditorWindow
{
// enable resize on launch to set a default font size , using this option will disable the ability to have the window accassible
@nukadelic
nukadelic / EditorSceneGUIOverlay.cs
Last active September 17, 2020 12:42
EditorSceneGUIOverlay
#if UNITY_EDITOR
using System.Reflection;
using UnityEditor;
using System.Linq;
using UnityEngine;
public class EditorSceneGUIOverlay : Editor
@nukadelic
nukadelic / DisableXR.cs
Created December 15, 2020 16:09
Unity Disable / Enable XR On Enter play mode via mono behaviour script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
[ExecuteInEditMode]
public class DisableXR : MonoBehaviour
{
@nukadelic
nukadelic / FibonacciSphere.cs
Last active February 10, 2023 14:05
Fibonacci Sphere ( Unity3D )
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
public class FibonacciSphere : MonoBehaviour
{
[Range(0,500)] public int count = 200;
[Range(0,2f)] public float radius = 1f;
@nukadelic
nukadelic / ContextMenuEditor.cs
Created September 29, 2021 23:50
Unity Context Menu Editor Window
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
public class ContextMenuEditor : EditorWindow
{
[MenuItem("Tools/Edit Context Menu")] static void Init() => GetWindow<ContextMenuEditor>().Show();
System.Type UnityEditorMenuClass;
@nukadelic
nukadelic / Tween.cs
Created February 27, 2022 23:49
Unity Tweener for MonoBehaviours
using System.Collections.Generic;
using UnityEngine;
#region global component extension functions
public static class TweenEx
{
/// <summary> Main tweener fucntion </summary>
public static Tween tween( this Component comp, float duration = 1f, Tween.EaseType ease = default, float delay = 0f, bool autoStart = true )
{