Skip to content

Smidgens/unity-extensions

Repository files navigation

ℹ️ Features

  • Various utility extensions for commonly used Unity and System types.
  • Supports disabling extensions on a per-type basis: EXT_0_<NAMESPACE>_<TYPE>

⌛ Planned

  • Extensions for types defined outside Unity core module (Animation, UI, etc.) and preprocessor symbols to selectively enable them: EXT_1_<NAMESPACE>_<TYPE>
  • Online documentation

📦 Install

  1. Open Package Manager
  2. Paste GitHub URL:
    https://github.com/Smidgens/unity-extensions.git#<version_tag>

🚀 Use

See Runtime folder for full list of extensions.


⭕ Disabling extensions for specific type

Add a preprocessor symbol to your project settings on the form: EXT_0_<NAMESPACE>_<TYPE>.

Example:

// disables extensions for System.Float
EXT_0_SYSTEM_FLOAT