- Home /
Player only spawns upon play
Dear Unity friends
I am totally new to Unity and I was given a game for which the player that I control only spawns when I play the game. It is not an object in the scene so I can't look at it's inspector. I am trying to trigger some things upon the players arrival at some specific location, but I don't know how to do it, because I don't know how to access the player object. Could you please help with an idea of how I could do such a thing?
Thanks!
Answer by HappyPixel27 · Mar 22, 2021 at 06:50 PM
I dont really understand what your problem is. If you are new however i highly recommend to follow a guide on youtube. Brackeys has alot of good tutorials to follow for many different types of games. Now for your issue i recommend to create some cubes and turn off the mesh renderer and change the box collider to Trigger. Next create a script and attach it to the cube. In that script put a new function called OnTriggerEnter/OnTriggerExit and write what you want to happen in that script.