Skip to content

Instantly share code, notes, and snippets.

View neo-mashiro's full-sized avatar
🌀
jumping out of comfort zone

Mash!ro* neo-mashiro

🌀
jumping out of comfort zone
View GitHub Profile
@neo-mashiro
neo-mashiro / Instrumentor.h
Created August 6, 2021 07:25 — forked from TheCherno/Instrumentor.h
Basic Instrumentation Profiler
//
// Basic instrumentation profiler by Cherno
// Usage: include this header file somewhere in your code (eg. precompiled header), and then use like:
//
// Instrumentor::Get().BeginSession("Session Name"); // Begin session
// {
// InstrumentationTimer timer("Profiled Scope Name"); // Place code like this in scopes you'd like to include in profiling
// // Code
// }
using UnityEngine;
[HelpURL("http://unity3d.college")]
[SelectionBase]
public class MyClass : MonoBehaviour
{
[Header("Text Attributes")]
[TextArea]
[Tooltip("A string using the TextArea attribute")]
[SerializeField]

How to Use?

GUIStyle mystyle = new GUIStyle("some string from the list below");


UnityEditor.ConsoleWindow.Constants

  • "CN Box"
  • "Button"