# ObjectIdResult

> The results of an ObjectIdRequest, stored in _result, containing the ObjectIdResult.idToObjectMapping that is needed to interpret the color-encoded object IDs that are rendered in the _destination RenderTexture.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public class ObjectIdResult
```

## Remarks

Please see [ObjectIdRequest](/engine/6000.0/script-reference/unityengine/rendering/objectidrequest.md) for further information and examples on submitting and using the results of this request.

Additional Resources: [ObjectIdRequest](/engine/6000.0/script-reference/unityengine/rendering/objectidrequest.md).

## Properties

| Property                                                                                                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [idToObjectMapping](/engine/6000.0/script-reference/unityengine/rendering/objectidresult/idtoobjectmapping.md) | An array of Objects that can be used to deterimine the object at each pixel in [\_destination](/engine/6000.0/script-reference/unityengine/rendering/objectidrequest/destination.md), first by decoding colors from [\_destination](/engine/6000.0/script-reference/unityengine/rendering/objectidrequest/destination.md) to an index using [ObjectIdResult.DecodeIdFromColor](/engine/6000.0/script-reference/unityengine/rendering/objectidresult/decodeidfromcolor.md), and then by looking up this index in this array. |

## Static Methods

| Method                                                                                                         | Description                                                                                                                                                                                                                                                                                                                 |
| -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DecodeIdFromColor](/engine/6000.0/script-reference/unityengine/rendering/objectidresult/decodeidfromcolor.md) | A utility function that can be used to decode colors from [\_destination](/engine/6000.0/script-reference/unityengine/rendering/objectidrequest/destination.md) to an index that can then be looked up in [\_idToObjectMapping](/engine/6000.0/script-reference/unityengine/rendering/objectidresult/idtoobjectmapping.md). |
