Skip to content

Instantly share code, notes, and snippets.

@trfd
trfd / settings.json
Created June 29, 2019 10:43
Better Comment Config
"better-comments.tags":
[
{
"tag": "!",
"color": "#FF2D00",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "?",
@trfd
trfd / EditorExtensionMethods.cs
Created February 2, 2018 08:32 — forked from LotteMakesStuff/EditorExtensionMethods.cs
A reimplementation of the logic in the Unity Editor that draws an inspector for a component. We can use this to learn how unity actually draws the inspector. for more info see https://www.patreon.com/posts/16724128
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
public static class EditorExtensionMethods
{
// Public reimplmentation of extention methods and helpers that are marked internal in UnityEditor.dll
public class GraphicsDiagnostics : UnityEngine.MonoBehaviour
{
// Useful to keep the generated XML to see the content for debug purpose.
public bool RemoveDxDiagFile = true;
public string DxDiagTempFile = @"C:\Users\trfd\Desktop\dxdiag.xml";
private bool didRunDxDiagProcessing = false;
private System.Diagnostics.Process dxdiagProcess;