Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 994 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 994 Bytes

RootExtensions

A library of C# extension methods for Unity classes used by Studio Root Games. Can be directly copied into a project, turned into a Unity Package Manager package, or imported into the project as an NPM package using npm install jordanstudioroot/UnityNPMInit, in which case it will be copied to Assets/RootExtensions.

Installation

Either clone the repo to the Assets directory, or initialize an existing unity project with npm and install using npm install jordanstudioroot/RootExtensions-UnityCSharp.

Usage

All functions are extension on unity classes, and can be called as a function on the specific class. Ex. Transform.StandOn().

List of Extended Classes

  • Button
  • Color
  • Component
  • GameObject
  • PointerEventData
  • RectTransform
  • Text
  • Transform

Reccomendations

TODO

  • Add namespaces
  • Tests
  • Class library Git wiki.

Criticisms, Suggestions, Pull Requests

Email: jordannelson@protonmail.com