# UntypedWeakReferenceId

> Used to identify weakly referenced data.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities.Serialization](/engine/7000.0/script-reference/unity/entities/serialization.md)
* **Assembly:** UnityEngine.EntitiesModule
* **Implements:** [IEquatable\<UntypedWeakReferenceId>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct UntypedWeakReferenceId : IEquatable<UntypedWeakReferenceId>
```

## Fields

| Value                                                                                                                   | Description                                                                                   |
| ----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [GenerationType](/engine/7000.0/script-reference/unity/entities/serialization/untypedweakreferenceid/generationtype.md) | The type of reference this is. It is aliased to RuntimeGlobalObjectId.SceneObjectIdentifier1. |
| [GlobalId](/engine/7000.0/script-reference/unity/entities/serialization/untypedweakreferenceid/globalid.md)             | 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)](/engine/7000.0/script-reference/unity/entities/serialization/untypedweakreferenceid/ctor.md#untypedweakreferenceid\(hash128-long-int-weakreferencegenerationtype\))        | Construct new UntypedWeakReferenceId.                          |
| [UntypedWeakReferenceId(Unity.Entities.Serialization.RuntimeGlobalObjectId,Unity.Entities.Serialization.WeakReferenceGenerationType)](/engine/7000.0/script-reference/unity/entities/serialization/untypedweakreferenceid/ctor.md#untypedweakreferenceid\(runtimeglobalobjectid-weakreferencegenerationtype\)) | Construct a reference given the global id and generation type. |

## Methods

| Method                                                                                                            | Description                                          |
| ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| [Equals](/engine/7000.0/script-reference/unity/entities/serialization/untypedweakreferenceid/equals.md)           | Checks if this reference is equal to another object. |
| [GetHashCode](/engine/7000.0/script-reference/unity/entities/serialization/untypedweakreferenceid/gethashcode.md) | Returns the hash code of this id.                    |
| [ToString](/engine/7000.0/script-reference/unity/entities/serialization/untypedweakreferenceid/tostring.md)       | Converts the id to a string.                         |
