Skip to content

Instantly share code, notes, and snippets.

View Vaupell's full-sized avatar
🔥
Having fun

Martin Vaupell Vaupell

🔥
Having fun
View GitHub Profile
@Vaupell
Vaupell / SnapshotCamera.cs
Created April 23, 2021 06:41 — forked from mickdekkers/SnapshotCamera.cs
Take snapshot images of Prefabs and GameObjects in Unity using Render Textures
using UnityEditor;
using UnityEngine;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
// Object rendering code based on Dave Carlile's "Create a GameObject Image Using Render Textures" post
// Link: http://crappycoding.com/2014/12/create-gameobject-image-using-render-textures/