# subMeshFlags

> Flags that determine how rays intersect the geometry for each sub-mesh relative to material type during ray tracing.

## Definition

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

```csharp
public RayTracingSubMeshFlags subMeshFlags
```

### Remarks

The material type can influence the value of this flag. For example if Unity considers the material opaque, you can specify the [RayTracingSubMeshFlags.Enabled](/engine/6000.6/script-reference/unityengine/rendering/raytracingsubmeshflags/enabled.md) and [RayTracingSubMeshFlags.ClosestHitOnly](/engine/6000.6/script-reference/unityengine/rendering/raytracingsubmeshflags/closesthitonly.md) flags together for maximum ray tracing performance.
