Table of Contents

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 context parameter is provided, then only bindings targeting components attached to the given context GameObject are included in the counts. If context is null, then all bindings from the CoherenceSync component are included in the counts, regardless of the GameObject they target.

Returns
Type Description
(int totalCount, int invalidCount)

A tuple containing the total number of command bindings and the number of invalid command bindings.