OnTriggerEnter is not working! I have tried absolutely everything I can think of.

I am working on a project and the goal of my script is to set the first state of a gameobject inactive and then set the second state active when colliding with a gameobject with the tag “Ball.” I have made sure one or both of the trigger objects has a rigidbody and that one of them has isTrigger on and the other off. Everything I can think of does not work.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class JumpPad : MonoBehaviour
{
    public GameObject State1;
    public GameObject State2;

    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Ball"))
        {
            State1.SetActive(false);
            State2.SetActive(true);
        }
    }
}

I’d say double check all of your gameobjects are assigned, triple check your triggers are set correctly, and check that the script is attached to the correct object in your hierarchy. They may seem simple, but they are often things that my brain skips over.

use debug.log to return information about the collision .

debug.log(other.name)
can you post a screenshot ?