A bunch of stuff I reuse in lots of projects. It's all pretty useful in one way or another. Scroll down for features.
Just release any edits with the same license.
Entirely my own code
- UnityEngine.InputSystem
- You should be using it anyway
- Unity
- yea
- Input
- PlayerInput
- A unique way to intercept player input. The reason this package requires UnityEngine.Input. Basically routes specific InputActions directly through UnityEvents.
- PlayerInput
- Audio
- AudioData
- Stores information used to play audio.
- Audio
- Call Audio.Play() with your AudioData to easily play some audio.
- AudioManager
- Created automatically at runtime.
- AudioData
- Classes
- Extensions
- Various extensions.
- RangedFloat
- Composed of two floats, a min and a max, and can return Random.Range(min,max).
- UnityEventT
- Various UnityEvent types.
- VectorCurve
- Serializable class containing 4 different AnimationCurves, and can be evaluated as Vector2/3/4/Quaternion.
- Extensions
- Misc
- LazySingletonMonoBehaviour
- Inherit from this for an easy created-on-demand MonoBehaviour singleton.
- Destroyer
- Destroys a GameObject, or itself if one isn't specified.
- LazySingletonMonoBehaviour
Open the package manager and click the ➕▾
and add a new Git package - paste in this URL: https://github.com/Alscenic/shared-unity-utils.git
I might explain everything eventually, but for now, the code is documented so figure it out ig