Method RemoveHandler
RemoveHandler(GameObject)
Use the GameObject of the overridden network prefab asset to remove a registered class that implements the INetworkPrefabInstanceHandler interface.
Declaration
public bool RemoveHandler(GameObject networkPrefabAsset)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | networkPrefabAsset | GameObject of the network prefab asset that was being overridden |
Returns
| Type | Description |
|---|---|
| bool | true (success) or false (failure) |
RemoveHandler(NetworkObject)
Use the NetworkObject of the overridden network prefab asset to remove a registered class that implements the INetworkPrefabInstanceHandler interface.
Declaration
public bool RemoveHandler(NetworkObject networkObject)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkObject | networkObject | NetworkObject of the source NetworkPrefab that was being overridden |
Returns
| Type | Description |
|---|---|
| bool | true (success) or false (failure) |
RemoveHandler(uint)
Use the GlobalObjectIdHash of the overridden network prefab asset to remove a registered class that implements the INetworkPrefabInstanceHandler interface.
Declaration
public bool RemoveHandler(uint globalObjectIdHash)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | globalObjectIdHash | GlobalObjectIdHash of the source NetworkPrefab that was being overridden |
Returns
| Type | Description |
|---|---|
| bool | true (success) or false (failure) |