# MetadataValue

> Contains a single metadata value for a batch.

## Definition

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

```csharp
public struct MetadataValue
```

## Remarks

A metadata value is a uint32 value tied to a DOTS-instanced property. Unity passes this metadata to the shader.

## Fields

| Value                                                                                   | Description                                                                                                                                                                                              |
| --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [NameID](/engine/6000.6/script-reference/unityengine/rendering/metadatavalue/nameid.md) | The name ID of the property that the metadata value is tied to. To specify a value for a property declared with UNITY\_DOTS\_INSTANCED\_PROP(float4, Example), pass Shader.PropertyToID("Example") here. |
| [Value](/engine/6000.6/script-reference/unityengine/rendering/metadatavalue/value.md)   | Unity passes this uint32 value to the shader for this property. The value is shared between all instances in the batch. Usage example: provide a buffer address for the property.                        |
