A collection of Unity3D scripts I've been sharing between projects - open source, fully commented and with examples.
C#
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
Countdown Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
EditorHelper Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
Examples Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
LINQExtensions Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
MathHelper Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
MeshCreator Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
NoiseOutputValue Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
RandomBag "RefillItems needs to contain at least one argument" Nov 26, 2017
Range Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
RollingArray Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
Singleton Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
UnityHelper Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
XmlHelper Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
_Images Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
Countdown.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
Doxyfile.dox Fixed documentation May 15, 2016
Doxyfile.dox.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
EditorHelper.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
Examples.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
LICENSE Initial commit May 8, 2016
LICENSE.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
LINQExtensions.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
MathHelper.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
MeshCreator.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
NoiseOutputValue.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
README.md Added note regarding the .gitignore change and existing git repositor… Sep 26, 2017
README.md.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
RandomBag.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
Range.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
RollingArray.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
Singleton.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
UnityHelper.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
XmlHelper.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017
_Images.meta Removed .gitignore to make it easier to include this in other git-tra… Sep 26, 2017

README.md

Tobi's Unity Utilities

Over the years, I've worked on a lot of projects and game jam prototypes with Unity3D and there are some pieces of code that I've needed time and time again. I'm sharing them here in the hopes that they are useful for you too!

Everything is released under the MIT License.

If you find any bugs or have suggestions, please add an Issue here or send me a mail at Tobias.Wehrum@dragonlab.de.

Overview

  • Countdown: Useful for things like cooldowns or spawn delays. It is also helpful for tweening things by using the PercentElapsed property.
  • EditorHelper: Gets the [Tooltip] attribute content of fields for editor classes. Might get more helper methods in the future.
  • LINQExtensions: A collection of extension methods for IEnumerable, List and arrays.
  • MathHelper: Helper methods for framerate-independent eased lerping, mapping and angles.
  • MeshCreator: Makes it more convenient to create meshes via code.
  • NoiseOutputValue: Enter a range and a speed in the editor, get an output value that fluctuates over time using Perlin Noise.
  • RandomBag: A RandomBag gives you random items from a group while ensuring that in a certain interval every item was given back the same number of times.
  • Range: Editable data types that take an int/float range. Used for things like "Spawn 2 to 4 enemies."
  • RollingArray: Collection that keeps the last x elements that are added to it.
  • Singleton: Allows easy and convenient creation of a Singleton. Optionally makes a Singleton persist between scenes while ensuring that only one exists.
  • UnityHelper: Contains a plethora of useful extensions and helpers for Transform, GameObject, Vector2/3/4, Rect and more.
  • XmlHelper: Serializes data to XML strings and makes accessing optional element content and attributes in general XMLs easier.

Usage

To use the scripts, just drop them into the Assets folder of your projects. Or better yet, make an "Assets/Extensions/TobisUnityUtitilites" folder and drop them there. Hurray for proper organisation.

You can also just use selected scripts, but you should check the "Dependencies" section in the respective folder to make sure you copy everything you need.

Documentation

The class documentation is available here.

Changelog