Extensions


Declaration

public static class Extensions

Description

Utility extension methods.

Extension Methods

HasChecks if the flags contain a specified flag.
HasAnyChecks if the flags contain any of the other specified flags.
ContainsChecks if the given layer is included in the mask.
SetHeightSets the character's height to the desired height.
GetBoundsCalculates the world space bounding volume of the character.
GroundCheckPerforms a raycast to see if the character is grounded.
BoxCastPerforms a box cast from the character's position.
SphereCastPerforms a sphere cast from the character's position.
StickDeadzoneClamps the input magnitude below min to zero and above max to one.
SetLayerRecursivelySets the layer of the game object and all of its children to the specified layer.