Extension Methods
AchUtils.Extensions contains the Unity runtime extension methods and small utility classes migrated from AchEngine.
All public APIs now use the AchUtils namespace, so add using AchUtils; in scripts that consume them.
Package Info
| Item | Value |
|---|---|
| Assembly | AchUtils.Extensions |
| Root namespace | AchUtils |
| Folder | Runtime/Extensions |
| Additional Unity packages | com.unity.ugui, com.unity.nuget.newtonsoft-json |
Included Areas
Collections
| Class | Purpose |
|---|---|
ArrayExt, ListExt | Array and list helpers |
DictionaryExt, MultiDictionary<TKey,TValue> | Dictionary helpers and multi-value keys |
IEnumerableExt, IListExt, LinqE | LINQ helpers, shuffling, filtering, conversion |
Unity Types
| Class | Purpose |
|---|---|
GameObjectExt, ComponentExt | Component lookup, add/remove helpers, hierarchy traversal |
Vector2Ext, Vector3Ext, RectExt | Coordinate, size, and bounds helpers |
ColorExt, ColorUtils | Color conversion and hex helpers |
SpriteRendererExt, SpriteAtlasExt | Sprite renderer and atlas helpers |