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.

RaycastHit.transform

public Transform transform;

Description

The Transform of the rigidbody or collider that was hit.