LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

PhysicsRaycaster.maxRayIntersections

public int maxRayIntersections;

Description

Max number of ray intersection allowed to be found.

A value of zero will represent using the allocating version of the raycast function where as any other value will use the non allocating version.