Class NetworkPrefab
Class that represents a NetworkPrefab
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
[Serializable]
public class NetworkPrefab
Fields
| Name | Description |
|---|---|
| Override | The override settings for this NetworkPrefab |
| OverridingTargetPrefab | The prefab to replace (override) the source prefab with |
| Prefab | Asset reference of the network prefab |
| SourceHashToOverride | Used when hash is selected for the source prefab to override value (i.e. a direct reference is not possible such as in a multi-project pattern) |
| SourcePrefabToOverride | Used when prefab is selected for the source prefab to override value (i.e. direct reference, the prefab is within the same project) We keep a separate value as the user might want to have something different than the default Prefab for the SourcePrefabToOverride |
Properties
| Name | Description |
|---|---|
| SourcePrefabGlobalObjectIdHash | |
| TargetPrefabGlobalObjectIdHash |
Methods
| Name | Description |
|---|---|
| Equals(NetworkPrefab) | |
| ToString() | Returns a string that represents the current object. |
| Validate(int) |