Skip to content

Instantly share code, notes, and snippets.

View paulsinnett's full-sized avatar
🎮
Awaiting your toughest questions

Paul Sinnett paulsinnett

🎮
Awaiting your toughest questions
View GitHub Profile
@paulsinnett
paulsinnett / ReplaceWithPrefab.cs
Created June 26, 2018 11:05
Replace objects with a prefab
using UnityEditor;
using UnityEngine;
public class ReplaceWithPrefabWindow : EditorWindow
{
public Transform prefab;
[MenuItem("GameObject/Replace with prefab")]
static void Init()
{
@paulsinnett
paulsinnett / unpack.py
Last active May 16, 2018 00:37
unitypackage unpacker
import argparse
import tarfile
import os
import io
class UnityAsset:
pass
parser = argparse.ArgumentParser(description='Unpack a .unitypackage')
parser.add_argument('INPUT_PACKAGE', help='path to a .unitypackage file')
@paulsinnett
paulsinnett / CSV.cs
Last active September 17, 2017 17:43
Useful CSV parsing code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CSV
{
static bool EvenQuotes(string entry)
{
bool even = true;
foreach (char letter in entry)