Method CreateNetworkObjectPrefab
CreateNetworkObjectPrefab(string)
Creates a basic NetworkObject test prefab, assigns it to a new NetworkPrefab entry, and then adds it to the server and client(s) NetworkManagers' NetworkConfig.NetworkPrefab lists.
Declaration
protected GameObject CreateNetworkObjectPrefab(string baseName)
Parameters
Type | Name | Description |
---|---|---|
string | baseName | the basic name to be used for each instance |
Returns
Type | Description |
---|---|
GameObject | NetworkObject of the GameObject assigned to the new NetworkPrefab entry |