RaycastCollider.length Manual     Reference     Scripting  
Scripting > Runtime Classes > RaycastCollider
RaycastCollider.length

var length : float

Description

The length of the ray cast measured in local space. The ray will go

from center along transform's negative y-axis. The length will be scaled by the transform's scale.

collider.length = 2;