onPick property

void Function(RaycastHit? hit)? onPick
final

Called when the user clicks; receives the nearest hit (or null).

Implementation

final void Function(RaycastHit? hit)? onPick;