UntypedWeakReferenceId
Used to identify weakly referenced data.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Struct
- Namespace: Unity.Entities.Serialization
- Assembly: UnityEngine.EntitiesModule
- Implements: IEquatable<UntypedWeakReferenceId>
public struct UntypedWeakReferenceId : IEquatable<UntypedWeakReferenceId>
Fields
Value | Description |
|---|---|
| GenerationType | The type of reference this is. It is aliased to RuntimeGlobalObjectId.SceneObjectIdentifier1. |
| GlobalId | The global object id. This matches the editor global id. |
Constructors
Constructor | Description |
|---|---|
| UntypedWeakReferenceId(Unity.Entities.Hash128,System.Int64,System.Int32,Unity.Entities.Serialization.WeakReferenceGenerationType) | Construct new UntypedWeakReferenceId. |
| UntypedWeakReferenceId(Unity.Entities.Serialization.RuntimeGlobalObjectId,Unity.Entities.Serialization.WeakReferenceGenerationType) | Construct a reference given the global id and generation type. |
Methods
Method | Description |
|---|---|
| Equals | Checks if this reference is equal to another object. |
| GetHashCode | Returns the hash code of this id. |
| ToString | Converts the id to a string. |