# subMeshFlags

> Flags that determine how rays intersect the geometry for each submesh relative to Material type during ray tracing.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/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.0/script-reference/unityengine/rendering/raytracingsubmeshflags/enabled.md) and [RayTracingSubMeshFlags.ClosestHitOnly](/engine/6000.0/script-reference/unityengine/rendering/raytracingsubmeshflags/closesthitonly.md) flags together for maximum ray tracing performance.
