# DecodeIdFromColor(Color)

> A utility function that can be used to decode colors from _destination to an index that can then be looked up in _idToObjectMapping.

## Definition

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

```csharp
public static int DecodeIdFromColor(Color color)
```

### Parameters

**** (\[Color]\(/engine/6000.0/script-reference/unityengine/color)):&#x20;

### Returns

| Type                                                       | Description |
| ---------------------------------------------------------- | ----------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) |             |
