Skip to content

Instantly share code, notes, and snippets.

@thelastpointer
thelastpointer / CSVReader.cs
Last active August 31, 2023 16:55
Simple CSV reader class that is able to convert lines into objects.
using System.Collections.Generic;
using System.IO;
using System.Reflection;
namespace TLP.Utils
{
/// <summary>
/// Reads CSV files.
/// </summary>
public static class CSVReader
/*
Sample custom editor for a class in the same file.
I've yet to encounter errors with compilation order.
*/
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
@thelastpointer
thelastpointer / EditorGraph.cs
Last active April 13, 2024 04:07
Draw graphs in OnInspectorGUI. #unity3d
/*
EditorGraph -- quickly draw graphs in the inspector.
Place this in a folder named 'Editor'.
*/
/*
USAGE:
public override void OnInspectorGUI()
{
base.OnInspectorGUI();