Create a gameobject after the collision of other two game objects

Hi, i searched for a long time but i couldn’t find the script i need i know that it is super easy but still i’m a noob and i don’t know yet to code.

Create a gameobject after the collision of other two game objects

You can use OnCollisionEnter to do stuff when two objects collide. You can add a script containing OnCollisionEnter to one of the two objects to collide and create a new GameObject within that method.