Skip to content

Instantly share code, notes, and snippets.

@der-hugo
der-hugo / Example.cs
Last active November 13, 2024 10:53
Inspector dropdown for selecting a tag
using UnityEngine;
namespace derHugo
{
public class Example : MonoBehaviour
{
public Tag Tag;
}
}
@der-hugo
der-hugo / ResourcesInfo.cs
Created November 13, 2024 10:48
For listing all available paths to be used in Resources.Load - stores and loads a simple text file containing all resources paths
using System.Collections.Generic;
using UnityEngine;
using System;
using System.IO;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace derHugo
@der-hugo
der-hugo / SceneReference.cs
Created November 20, 2024 15:53
Serializable Scene reference for Unity based on https://github.com/JohannesMP/unity-scene-reference
/*
* original source: https://github.com/JohannesMP/unity-scene-reference
*/
using System;
using System.Linq;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;