Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

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

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.

Did you find this page useful? Please give it a rating: