Trigger activation?

Hello, im new to coding i want to get a trigger activated by collectiong a few things (e.g. you can move to the next level by collecting a key).

How can i do that?

So first on your “key” object you need to check the square that says isTrigger in the inspector. Then either your player or the “key” needs a rigidbody. Then in the code connected to the player use this:

function OnTriggerEnter ()
{
    //do whatever you want here
}