[Library] Extensions for Unity

edited in Projects
Hey everyone,

I see we never posted here about our free extensions package for Unity. Version 1.2 just became available in the asset store: https://www.assetstore.unity3d.com/en/#!/content/19323

In case you use Unity and don't know about it, here is a list of the things it contains:

* A base class for creating Singletons from any monobehaviour.

* A light-weight state machine class.

* A monobehaviour class that defines generic methods for Instantiation.

* A PlayerPrefs alternative that, in addition to the methods of the standard PlayerPrefs, also defines methods for dealing with boolean types, and rays of int, float, string and bool.

* Extensions for transform that allows easy setting of components of position, scale and rotation separately.

* Extensions for vectors to calculate the projection and rejection, and the vector perpendicular (2D).

* Extensions for Colors to get lighter or darker colors, get a color with a given value, and get an opaque version of a given color.

* A clock class.

* Generator classes for generating sequences of objects.

* Response curve classes for easy defining piece-wise linear curves.[/list]

You can check out the API Docs here: http://www.gamelogic.co.za/documentation/extensions/

A large part of this library has been extracted from the dozens of games that I have worked on, so these concepts have been tried and tested in the field. Some of the newer classes have been implemented to support the Color package and another toolkit we are working on at the moment.
Thanked by 1vintar

Comments

  • Thanks for sharing this, this will save people literally months of trial and error, pretty much every feature you listed here is pretty much a necessity for making clean unity projects.

    Something I have been looking for is a nice set of functions to handle creation of coroutines (StartCoroutine) from classes that don't inherit from monobehaviour.... just putting it out there as a suggestion to add :D
    Thanked by 1hermantulleken
Sign In or Register to comment.