Skip to content

Instantly share code, notes, and snippets.

View sgarcia22's full-sized avatar

Sam Garcia sgarcia22

View GitHub Profile
@sgarcia22
sgarcia22 / NounCharacterAssigner.cs
Last active October 15, 2023 12:39
Creates a prefab from Nouns base models. Created as a fix for the https://3dnouns.com/ characters.
using UnityEngine;
using UnityEditor;
/// <summary>
/// Creates a prefab from Nouns base models. Created as a fix for improperly rigged https://3dnouns.com/ characters.
///
/// This tool takes a "MAIN" prefab with the base body and head set up, creates a new prefab based on the "MAIN" one, and swaps out the textures for the imported .gltf gameobject.
///
/// Set Up:
/// -Download the base body.glb and head.glb from https://github.com/0xFloyd/3DNouns/tree/main/public/baseModels.