Unity 6.3
0 онлайн 1 гость 3 в системе
Вход

ControllerColliderHit.transform

Declaration

public Transform transform;

Описание

Преобразование, которое было достигнуто контроллером.

using UnityEngine;

public class Example : MonoBehaviour { // Print the transform's name that collided with this ControllerCollider void OnControllerColliderHit(ControllerColliderHit hit) { if (hit != null) { Debug.Log("I'm colliding with: " + hit.transform.name); } } }