Skip to content

Instantly share code, notes, and snippets.

View EudenDev's full-sized avatar
🍊

Andrés Eduardo Maldonado EudenDev

🍊
View GitHub Profile
@EudenDev
EudenDev / InspectorShortcuts.cs
Last active March 14, 2025 10:40
Add this script inside an Editor/ folder. Made in Unity 2022.3. Press F11 to open Property (like left click on game object/properties... window). Press F12 to toggle all inspectors to Debug mode. The shortcuts can be modified too.
using System;
using System.Reflection;
using UnityEditor;
using UnityEditor.ShortcutManagement;
using UnityEngine;
public static class InspectorShortcuts
{
private static Type PropertyEditorType => typeof(EditorWindow).Assembly.GetType("UnityEditor.PropertyEditor");
private static Type UnityEditorInspectorType => typeof(Editor).Assembly.GetType("UnityEditor.InspectorWindow");
@EudenDev
EudenDev / InspectorToggleDebugShortcut.cs
Created October 31, 2023 16:20
Unity script to activate inspector debug mode from a keyboard shortcut. By default F12 but can be changed via Edit/Shortcuts...
using System;
using System.Reflection;
using UnityEditor;
using UnityEditor.ShortcutManagement;
using UnityEngine;
using Debug = System.Diagnostics.Debug;
public class InspectorToggleDebugShortcut : MonoBehaviour
{
@EudenDev
EudenDev / SimpleTimer.cs
Last active July 26, 2019 17:37
Timer for Unity, normalized value can be passed to Lerp or easing functions. -- Visit my GitHub or Twitter for more Unity scripts.
using UnityEngine;
// ANDRES MALDONADO - https://github.com/eudendeew/
/// <summary>
/// Creates a timer that goes from zero to Time Amount.
/// </summary>
[System.Serializable]
public class SimpleTimer
{
@EudenDev
EudenDev / Comment.cs
Last active March 14, 2025 10:38
Comment Component for Unity, simple and compact. -- Visit my GitHub or Twitter for more Unity scripts.
#if UNITY_EDITOR
using UnityEditor;
#endif
using UnityEngine;
public sealed class Comment : MonoBehaviour
{
public string commentary = "New comment.";
}
@EudenDev
EudenDev / PoolingSystemDoc.md
Last active June 14, 2019 23:06
Pooling System Documentation