Method AddComponentToObject
AddComponentToObject<T>(Guid)
Helper class to add a component to the GameObject with a NetoworkObject component
Declaration
public static T AddComponentToObject<T>(Guid gameObjectIdentifier) where T : NetworkBehaviour
Parameters
Type | Name | Description |
---|---|---|
Guid | gameObjectIdentifier | ID returned to reference the game object |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | NetworkBehaviour component being added to the GameObject |