Struct UntypedWeakReferenceId
Used to identify weakly referenced data.
Namespace: Unity.Entities.Serialization
Assembly: solution.dll
Syntax
[Serializable]
public struct UntypedWeakReferenceId
Constructors
Name | Description |
---|---|
UntypedWeakReferenceId(Hash128, long, int, WeakReferenceGenerationType) | Construct new UntypedWeakReferenceId. |
UntypedWeakReferenceId(RuntimeGlobalObjectId, WeakReferenceGenerationType) | Construct a reference given the global id and generation type. |
Fields
Name | 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. |
Properties
Name | Description |
---|---|
IsValid |
Methods
Name | Description |
---|---|
CreateFromObjectInstance(Object) | Get a weak reference from a Unity object reference. |
Equals(object) | Checks if this reference is equal to another object. |
Equals(UntypedWeakReferenceId) | Checks if this reference is equal to another reference. |
GetEditorObject(UntypedWeakReferenceId) | Gets an object from its id. |
GetHashCode() | Returns the hash code of this id. |
ToString() | Converts the id to a string. |
Operators
Name | Description |
---|---|
operator ==(UntypedWeakReferenceId, UntypedWeakReferenceId) | |
operator !=(UntypedWeakReferenceId, UntypedWeakReferenceId) |