This file contains hidden or 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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// @kurtdekker | |
// | |
// FPS Aim helper, super-generic screenspace aimbot helper. | |
// | |
// This only needs is to be called with your actual proposed | |
// mouse inputs and to know which way it is facing. |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// @kurtdekker | |
// | |
// Projects a Camera frustum onto an arbitrary Transform plane | |
// | |
// You can (probably) drop this script on any GameObject. | |
// |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEngine.SceneManagement; | |
using UnityEditor.SceneManagement; | |
// @kurtdekker | |
// | |
// A handy way to emit the contents of a scene or prefab as text. |
This file contains hidden or 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
// | |
// @kurtdekker | |
// | |
// How to start using the new input system in place of the old one. | |
// | |
// If you've been using Input.* for everything, here is how to start | |
// using the new input system without a lot of extra fussing around. | |
// | |
using UnityEngine; |
This file contains hidden or 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; | |
// @kurtdekker - dead-simple infinite loop finder | |
// TODO: call BREAKOUT.Check(); from within every suspect loop. | |
// TODO: optionally supply a custom max callcount | |
public class BREAKOUT : MonoBehaviour | |
{ | |
static BREAKOUT _instance; |
This file contains hidden or 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.Reflection; | |
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.UI; | |
#if UNITY_2021_2_OR_NEWER | |
using PrefabStage = UnityEditor.SceneManagement.PrefabStage; | |
using PrefabStageUtility = UnityEditor.SceneManagement.PrefabStageUtility; |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// @kurtdekker - precise timing on two cars passing the finish line at the same instant | |
// | |
// from forum post: | |
// | |
// https://discussions.unity.com/t/how-do-you-measure-milliseconds-at-runtime/1562308 | |
// |
This file contains hidden or 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
namespace Zooming | |
{ | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// @kurtdekker - Shepard Tones for Unity3D. | |
// | |
// https://en.wikipedia.org/wiki/Shepard_tone | |
// |
This file contains hidden or 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; | |
using UnityEditor.Callbacks; | |
using System.Collections.Generic; | |
// @kurtdekker | |
// | |
// Makes temporary changes to scenes when building. | |
// | |
// Obviously this must live in an Editor/ folder. |
NewerOlder