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 UnityEditor; | |
using UnityEditor.Build; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
[InitializeOnLoad] | |
public class BuildHandler : MonoBehaviour | |
{ | |
/// <summary> |
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
#!/bin/bash | |
#locating unity folder | |
if [ "$#" -gt 0 ] | |
then | |
unityFolder=${1%/} | |
else | |
unityFolder="/Applications/Unity" | |
fi |
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 UnityEngine; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public static class DebugMenu | |
{ | |
private static int defaultMaxNumberOfSamplesPerFrame = -1; | |
private static bool dynamicProfilerSamplesSize = false; | |
private const string toggleDynamicProfilerSamplesSizeName = "Debug/Dynamic Profiler Sample Size"; | |
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 UnityEngine; | |
using System.Collections; | |
public class Example : MonoBehaviour | |
{ | |
public ExampleClass example; | |
void Start() {} | |
void Update() {} | |
} |
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
#!/bin/bash | |
lastcmd="" | |
while [ true ]; do | |
read -r -e -p "> git " gitcmd | |
if [ "$gitcmd" != "" ] && [ "$gitcmd" != "$lastcmd" ]; then | |
lastcmd=$gitcmd | |
history -s "$gitcmd" | |
fi | |
if [ "$gitcmd" == "exit" ]; then |