Skip to content

Instantly share code, notes, and snippets.

@Fogsight
Fogsight / ReferenceRemovalProjectHook.cs
Last active January 29, 2021 12:53 — forked from jbevain/ReferenceRemovalProjectHook.cs
Project Generation Hook to remove references to Boo.Lang (Updated for Unity 2019.4)
using SyntaxTree.VisualStudio.Unity.Bridge;
using UnityEditor;
[InitializeOnLoad]
public class ReferenceRemovalProjectHook {
static ReferenceRemovalProjectHook() => ProjectFilesGenerator.ProjectFileGeneration += (string name, string content) => GetAmmendedProjectFile(content);
private static string GetAmmendedProjectFile(string content) {
string start = "\r\n <Reference Include=\"Boo.Lang\">";
@Fogsight
Fogsight / Console.cs
Created June 20, 2018 07:29 — forked from mminer/Console.cs
Unity script to display in-game debug console.
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// A console to display Unity's debug logs in-game.
/// </summary>
public class Console : MonoBehaviour
{
struct Log
{
using UnityEngine;
using UnityEditor;
using System;
using System.Collections;
using System.Collections.Generic;
public class ColorToCSharp : EditorWindow
{
[SerializeField]
private bool _usedColorPickerOnce = false;