Enum GhostPrefabType
Assign to every GhostInstance, and denotes which Ghost prefab version this component is allowed to exist on.
GhostAuthoringInspectionComponent to manually override on a specific Ghost prefab.
Namespace: Unity.NetCode
Syntax
[Flags]
public enum GhostPrefabType
Fields
| Name | Description | Value |
|---|---|---|
| None | Component will not be added to any Ghost prefab type. |
0 |
| InterpolatedClient | Component will only be added to the Interpolated Client version. |
1 |
| PredictedClient | Component will only be added to the Predicted Client version. |
2 |
| Client | Component will only be added to Client versions. |
3 |
| Server | Component will only be added to the Server version. |
4 |
| AllPredicted | Component will only be added to the Server and PredictedClient versions. |
6 |
| All | Component will be to all versions. |
7 |