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 UnityEngine; | |
using System; | |
using System.IO; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
namespace derHugo |
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; | |
namespace derHugo | |
{ | |
public class Example : MonoBehaviour | |
{ | |
public Tag Tag; | |
} | |
} |
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.Runtime; | |
using System.Runtime.CompilerServices; | |
namespace derHugo | |
{ | |
public static class BenchmarkTools | |
{ | |
private static readonly object _lock = new(); |
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; | |
namespace derHugo | |
{ | |
public class Example : MonoBehaviour | |
{ | |
public LayerMask multiLayers; | |
public Layer singleLayer; | |
} | |
} |
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.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
/// <summary> | |
/// Dialogue that allows to rename objects in the Hierarchy of an <see cref="Animator"/> without breaking the AnimationClip bindings | |
/// </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
/// <summary> | |
/// Editor tools for auto-saving | |
/// </summary> | |
public static class AutoSaving | |
{ | |
private const string k_MenuName = "Examples/Auto-Save/"; | |
private static class IntervalAutoSaving | |
{ | |
/// <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
using UnityEngine; | |
public class AnimatorTriggerResetter : StateMachineBehaviour | |
{ | |
override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) | |
{ | |
foreach(var p in animator.parameters) | |
{ | |
if (p.type == AnimatorControllerParameterType.Trigger) | |
{ |
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.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
namespace DerHugo | |
{ | |
#if UNITY_EDITOR | |
/// <summary> | |
/// Non generic base class for <see cref="EnumMap{TKey,TValue}"/> for drawers |
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 UnityEngine; | |
/// <summary> | |
/// To store triangle data to get cleaner code | |
/// </summary> | |
[Serializable] | |
public struct Triangle2D | |
{ |
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 | |
############################################################### | |
# This Script creates a service and a dedicated user # | |
# for running sheepit-client (www.sheepit.com) on a headless # | |
# Linux-Server # | |
# # | |
# Author of this script is: [email protected] # | |
############################################################### | |
############################################################### |
NewerOlder