Skip to content

Instantly share code, notes, and snippets.

@HilariousCow
HilariousCow / gist:7f301b04c28fdf61e71f
Last active March 31, 2024 18:33
Load All Prefabs In Directory
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;
public static class PrefabLoader
{
//So, there's no "load all assets in directory" function in unity.
//I guess this is to avoid people using Prefabs as "data blobs".
//They'd rather you use ScriptableObjects... which is fine in some cases,