Extensions

A collection of static extension method classes that add convenience APIs to Unity types, .NET collections, and system primitives. All classes are in the Paragon namespace and are available project-wide without additional using statements.

Architecture

spinner

Quick Lookup

I want to...
Extension
Method

Listen to Animator IK/Move callbacks

animator.AddIKListener(cb) / animator.AddMoveListener(cb)

Check if directory contains another

parent.HasSubDirectory(sub)

Walk up the GameObject hierarchy

go.GetParents()

Move a GameObject to a scene

go.MoveToScene(scene) / go.MoveToActiveScene()

Negate a Contains check

collection.NotContains(item)

ForEach on IEnumerable

source.ForEach(action)

Exclude items from a sequence

source.Except(item) / source.ExceptNull()

Conditionally append/prepend

source.AppendIf(cond, item) / source.PrependIf(cond, item)

Classes

Class
Extends
Description

Animator

Callback subscriptions for OnAnimatorIK and OnAnimatorMove via a hidden proxy component

DirectoryInfo

Directory hierarchy checks

GameObject

Parent traversal and scene management

ICollection<T>

Negated containment check

IEnumerable<T>

LINQ-style utilities: ForEach, With, Except, AppendIf, PrependIf, conditional ordering, tuple Select

See Also

  • Objects — base types these extensions often operate on

Last updated