RayCast.MaxHits Field

Definition

The maximum number of hits to collect. Only needed for ClosestHits. This number must be between 0 and 1024, with 1024 being a hard limit for the number of supported hit results. A value of 0 returns up to the maximum number of supported hits. In case the number of actual hits exceeds the limit, the n closest hits are returned.

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

Field Value

Applies to