Skip to content

Instantly share code, notes, and snippets.

View VasylRomanets's full-sized avatar
🇺🇦
#StandWithUkraine

Vasyl Romanets VasylRomanets

🇺🇦
#StandWithUkraine
View GitHub Profile
using UnityEngine;
namespace SpecificNamespace
{
[AddComponentMenu("SpecificName")]
public class CommonName : MonoBehaviour
{ }
}
using System;
using System.Reflection;
using UnityEditor;
public static class ConsoleUtilitiesEditor
{
[MenuItem("Tools/Clear Console %#c")] // Cmd/Ctrl + Shift + C
private static void ClearConsoleMenuItem()
{
ClearConsole();
@VasylRomanets
VasylRomanets / ForVSForeachBenchmark.cs
Last active December 8, 2016 19:45
Benchmark describes comparation of 'for' and 'foreach' in Unity 5.5.0f3 (64-bit). 1000 element arrays and lists of classes and structs were tested in loops with 500 000 iterations.
/*
* Benchmark describes comparation of 'for' and 'foreach' in Unity 5.5.0f3 (64-bit).
* 1000 element arrays and lists of classes and structs were tested in loops with 500 000 iterations.
*/
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using UnityEngine;