Share via


RayCastHit.SubPartId Field

Definition

The ID or index of the part that was hit.

public: int SubPartId;
public int SubPartId;
val mutable SubPartId : int
Public SubPartId As Integer 

Field Value

Remarks

This can be used to get the Material at the raycast intersection. First query for the MeshComponent, then query for the material using MeshComponent.UsedMaterials[SubPartId].

Applies to