# UpdateInstancePropertyBlock(int, MaterialPropertyBlock)

> Updates per ray tracing instance Material properties.

## Definition

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

```csharp
public void UpdateInstancePropertyBlock(int handle, MaterialPropertyBlock properties)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The handle associated with a AABB or Mesh ray tracing instance.**** (\[MaterialPropertyBlock]\(/engine/6000.5/script-reference/unityengine/materialpropertyblock)): The additional material properties to apply onto the Material used by the ray tracing instance.

### Remarks

A ray tracing instance associated with an axis-aligned bounding box (AABBs) [GraphicsBuffer](/engine/6000.5/script-reference/unityengine/graphicsbuffer.md) or a [Mesh](/engine/6000.5/script-reference/unityengine/mesh.md) can use a [Material](/engine/6000.5/script-reference/unityengine/material.md) shared with other similar ray tracing instances.

Additional per ray tracing instance Material properties can be specified using the [MaterialPropertyBlock](/engine/6000.5/script-reference/unityengine/materialpropertyblock.md) argument. The properties are copied into the ray tracing instance when this function is called.

Additional Resources: [RayTracingAccelerationStructure.AddInstance](/engine/6000.5/script-reference/unityengine/rendering/raytracingaccelerationstructure/addinstance.md), [RayTracingAccelerationStructure.RemoveInstance](/engine/6000.5/script-reference/unityengine/rendering/raytracingaccelerationstructure/removeinstance.md).
