# RuntimeGlobalObjectId

> Runtime version of the editor type GlobalObjectId. These types need to be binary compatible.

## Definition

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

```csharp
public struct RuntimeGlobalObjectId : IEquatable<RuntimeGlobalObjectId>, IComparable<RuntimeGlobalObjectId>
```

## Fields

| Value                                                                                                                                  | Description                      |
| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| [AssetGUID](/engine/7000.0/script-reference/unity/entities/serialization/runtimeglobalobjectid/assetguid.md)                           | Asset GUID.                      |
| [IdentifierType](/engine/7000.0/script-reference/unity/entities/serialization/runtimeglobalobjectid/identifiertype.md)                 | Identifier type.                 |
| [SceneObjectIdentifier0](/engine/7000.0/script-reference/unity/entities/serialization/runtimeglobalobjectid/sceneobjectidentifier0.md) | Unique identifier within a scene |
| [SceneObjectIdentifier1](/engine/7000.0/script-reference/unity/entities/serialization/runtimeglobalobjectid/sceneobjectidentifier1.md) | Unused.                          |

## Properties

| Property                                                                                                 | Description              |
| -------------------------------------------------------------------------------------------------------- | ------------------------ |
| [IsValid](/engine/7000.0/script-reference/unity/entities/serialization/runtimeglobalobjectid/isvalid.md) | True if the id is valid. |

## Methods

| Method                                                                                                           | Description                                   |
| ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| [GetHashCode](/engine/7000.0/script-reference/unity/entities/serialization/runtimeglobalobjectid/gethashcode.md) | Returns the hash code of this id.             |
| [ToString](/engine/7000.0/script-reference/unity/entities/serialization/runtimeglobalobjectid/tostring.md)       | Converts the id to a string representation.". |
