This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Original tool from Hannes Paulsson | |
From: https://gist.github.com/Happsson/af02d7a644db6b44bc834c8699bf3495 | |
Updated 2023/05/15 by Mark Castle (and ChatGPT :P) to add excluded paths and to also | |
give the option of opening files in the current editor, plus some minor tweaks | |
to keep re-sharper happy. | |
https://gist.github.com/markcastle/be019a471b44016d73c11f308feb5249 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.IO; | |
using System.Text; | |
using System.Threading; | |
namespace HighResolutionTimer | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.IO; | |
using UnityEngine; | |
using UnityEditor.SceneManagement; | |
using UnityEditor; | |
using System.Collections; | |
using System.Linq; | |
public class MultiSceneSetup : ScriptableObject | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Defines an add method that is chainable (returns itself) | |
public static List<T> ChainableAdd<T>(this List<T> list, T item) | |
{ | |
list.Add(item); | |
return list; | |
} | |
// Usage | |
List<int> numbers = new List<int>(); | |
numbers.ChainableAdd(1).ChainableAdd(2).ChainableAdd(3); // numbers will now contain [1, 2, 3] |