|
Impact Interaction System API
|
Static Public Member Functions | |
| static int | SetBit (this int bitmask, int pos) |
| Sets the bit at the given position to 1. More... | |
| static int | UnsetBit (this int bitmask, int pos) |
| Sets the bit at the given position to 0. More... | |
| static bool | IsBitSet (this int bitmask, int pos) |
| Is the bit at the given position set to 1? More... | |
| static T | GetOrAddComponent< T > (this GameObject gameObject, bool checkParents) |
| Either gets a component on the given game object or adds one. More... | |
| static int | IndexOf< T > (this T[] array, Predicate< T > predicate) |
| Gets the index of the first element matching the given predicate. More... | |
|
static |
Either gets a component on the given game object or adds one.
| T | The component type. |
| gameObject | The game object to get or add the component to. |
| checkParents | Should we look for the component in parent objects? |
| T | : | Component |
|
static |
Gets the index of the first element matching the given predicate.
| T | The array type. |
| array | The array. |
| predicate | The predicate to match. |
|
static |
Is the bit at the given position set to 1?
| bitmask | The bitmask to check against. |
| pos | The index of the bit to check. |
|
static |
Sets the bit at the given position to 1.
| bitmask | The bitmask to modify. |
| pos | The index of the bit to set. |
|
static |
Sets the bit at the given position to 0.
| bitmask | The bitmask to modify. |
| pos | The index of the bit to unset. |