Struct GhostType
Component storing the guid of the prefab the ghost was created from. This is used to lookup ghost type in a robust way which works even if two ghosts have the same archetype
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
[Serializable]
public struct GhostType : IComponentData, IQueryTypeParameter, IEquatable<GhostType>
Methods
Name | Description |
---|---|
Equals(object) | Returns whether or not the obj reference is of type |
Equals(GhostType) | Returns whether or not the other reference is identical to the current instance. |
GetHashCode() | Return an hashcode suitable for inserting the component into a dictionary or a sorted container. |
Operators
Name | Description |
---|---|
operator ==(GhostType, GhostType) | Returns whether or not two GhostType are identical. |
explicit operator Hash128(GhostType) | Convert a GhostType to a Hash128 instance. The hash will always match the prefab guid from which the ghost has been created. |
operator !=(GhostType, GhostType) | Returns whether or not two GhostType are distinct. |