Method Register
Register(Type, string, Type, string)
Register binding of a runtime field with an authoring field
Declaration
public static void Register(Type runtimeComponent, string runtimeField, Type authoringComponent, string authoringField)
Parameters
Type | Name | Description |
---|---|---|
Type | runtimeComponent | Type of the runtime component. Must implement IComponentData. |
string | runtimeField | Name of the runtime field. |
Type | authoringComponent | Type of the authoring component. Must derive from UnityEngine.Component. |
string | authoringField | Name of the authoring field. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if registering the same runtime field more than once. |