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.
PercentElapsed
property.[Tooltip]
attribute content of fields for editor classes. Might get more helper methods in the future.IEnumerable
, List
and arrays.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.int
/float
range. Used for things like "Spawn 2 to 4 enemies."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.
The class documentation is available here.
[Tooltip]
for NoiseOutputValue
and edited the existing PropertyDrawer
to use tooltips.