AddBinding
method in Coherence.Editor.CoherenceSyncUtils
Methods
public static Binding AddBinding<T>(GameObject gameObject, string memberName) where T : Component
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | gameObject | |
| string | memberName |
Returns
| Type | Description |
|---|---|
| Binding |
Type Parameters
| Name | Description |
|---|---|
| T |
public static Binding AddBinding(GameObject gameObject, Type type, string memberName)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | gameObject | |
| Type | type | |
| string | memberName |
Returns
| Type | Description |
|---|---|
| Binding |
public static Binding AddBinding(CoherenceSync sync, Component component, string memberName)
Parameters
| Type | Name | Description |
|---|---|---|
| CoherenceSync | sync | |
| Component | component | |
| string | memberName |
Returns
| Type | Description |
|---|---|
| Binding |
public static Binding AddBinding(CoherenceSync sync, Component component, Descriptor descriptor)
Adds a Binding to a CoherenceSync.
Parameters
| Type | Name | Description |
|---|---|---|
| CoherenceSync | sync | |
| Component | component | |
| Descriptor | descriptor |
Returns
| Type | Description |
|---|---|
| Binding |