https://github.com/Alscenic/shared-unity-utils
A bunch of stuff I reuse in lots of projects. It's all pretty useful in one way or another.
https://github.com/Alscenic/shared-unity-utils
csharp monobehaviour unity unity3d utilities
Last synced: about 1 year ago
JSON representation
A bunch of stuff I reuse in lots of projects. It's all pretty useful in one way or another.
- Host: GitHub
- URL: https://github.com/Alscenic/shared-unity-utils
- Owner: Alscenic
- License: gpl-3.0
- Created: 2021-06-10T22:41:12.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-03T19:21:56.000Z (almost 5 years ago)
- Last Synced: 2024-11-10T18:44:08.037Z (over 1 year ago)
- Topics: csharp, monobehaviour, unity, unity3d, utilities
- Language: C#
- Homepage: https://alscenic.com/
- Size: 738 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What is it?
A bunch of stuff I reuse in lots of projects. It's all pretty useful in one way or another. Scroll down for features.
# Use it how you want
Just release any edits with the same license.
Entirely my own code
# Requirements
* UnityEngine.InputSystem
* You should be using it anyway
* Unity
* yea
# Files (Features)
* Input
* **PlayerInput**
* A unique way to intercept player input. The reason this package requires UnityEngine.Input. Basically routes specific InputActions directly through UnityEvents.
* 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.
* 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.
* Misc
* **LazySingletonMonoBehaviour**
* Inherit from this for an easy created-on-demand MonoBehaviour singleton.
* **Destroyer**
* Destroys a GameObject, or itself if one isn't specified.
# Installation
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`
# How to use it
I might explain everything eventually, but for now, the code is documented so figure it out ig