GetMethodBindingsCount
Methods
public static (int totalCount, int invalidCount) GetMethodBindingsCount(CoherenceSync sync, GameObject context = null)
Gets the total number of command bindings and the number of invalid command bindings
for a given CoherenceSync component and an context GameObject.
Parameters
| Type | Name | Description |
|---|---|---|
| CoherenceSync | sync | The CoherenceSync component to count command bindings for. |
| GameObject | context | (Optional) GameObject whose components should be considered when counting command bindings.
The bindings of a CoherenceSync component can also include bindings targeting components
attached to child GameObjects. If a |
Returns
| Type | Description |
|---|---|
| (int totalCount, int invalidCount) | A tuple containing the total number of command bindings and the number of invalid command bindings. |