Noob Question About camera's

My camera is not destroying when I load I have tried many different approaches such as when the load button is pressed a script to destroy the camera prior to Loading…

My problem with this is i get an error saying cannot remove component because GUI layer depends on it.

So I tried Deleting All my GUI prior to deleting the camera prior to executing load and it still says “Cannot remove Component GUI layer Depends on it”

Help Please

I found a very ineffective way of removing it…

I’m good for now but would appreciate any more effective ways…

The only way I could make work was to Tag the camera as “BadCam” in the main menu and to prevent it from carrying over to the next scene i have e a script to find any objects with the tag bad cam and remove them…

What I don’t understand is so many people have troubles with carrying objects from one scene to the next and i was having troubles stopping unity from doing so

I’m intrigued to what you are trying to do (or not do). Every scene needs a camera to view anything. Are you wanting to just use a camera prefab you have created as opposed to the scene default one.

I’m just intrigued that’s all.

Regards,
Matt.

In each scene there is a player that starts in a different spot with a main camera attached to him/her

But inside of the main menu there is a camera(Obviously) And when i called the function “Application.LoadLevel(1)” The camera was not removed and carried to the next scene and then set itself as the main camera hence making the game unplayable as the camera was nowhere near the player.

I hope that explains it.