ThirdPersonController collision not calling OnTriggerEnter event
问题 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test : MonoBehaviour { public Transform target; // Update is called once per frame void Update () { } private void OnTriggerEnter(Collider col) { if (col.gameObject.tag == "Test") { this.transform.position = target.position; } } } I have a ThirdPersonController and i want it to collide with a cube or cylinder. The script is attached to the ThirdPersonController. I tried to add either to the cylinder or