Gamelogic Extensions for Unity

This (free) extension library contains a few light-weight utility classes and convenient extension methods for some Unity classes.

We have been using the classes in most of our Grids examples, and all 30 Games from our 30 Games in 30 Days project. Because we want to use this library in our other products too, we decided to make it a standalone package that we will give away for free. (The source code is included with all our Grids packages, so if you are a Grids user, you already have it :slight_smile:

The library contains:

  • A base class for creating Singletons from any MonoBehaviour. See Singleton.
  • A light-weight state machine class. See StateMachine.
  • A monobehaviour class that defines generic methods for Instantiation. See GLMonoBehaviour.
  • A light-weight clock class that can be used to manage timed events.
  • Classes that represent piece-wise linear curves, called response curves. Extensions provide response curves for float, Vector2, Vector3, Vector4, and Color.
  • Generators, useful building blocks for algorithms that should produce sequences of objects.
  • 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. See GLPlayerPrefs.
  • Extensions for transform that allows easy setting of components of position, scale and rotation separately. See TransformExtensions.
  • Extensions for vectors to calculate the projection and rejection, and the vector perpendicular (2D). See VectorExtensions.
  • 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. See ColorExtensions.

Asset Store Link

API Documentation

Support

  • support@gamelogic.co.za

1705513--107322--extensions_icon.png

Thanks for releasing this for free to the community! The Singleton and the Transform extensions definitely seem useful.

2 Likes

Extensions version 1.2 is now available in the Unity Asset Store. We have added some cool new classes, including:

  • A light-weight clock class that can be used to manage timed events.
  • Classes that represent piece-wise linear curves, called response curves. Extensions provide response curves for float, Vector2, Vector3, Vector4, and Color.
  • Generators, useful building blocks for algorithms that should produce sequences of objects.

Download it for free at Unity Asset Store - The Best Assets for Game Making