I am using two scence in one project when i load second scence as that movement camera position get change to avoid this can any one can guide me i
Thanx in Advance …!
I am using two scence in one project when i load second scence as that movement camera position get change to avoid this can any one can guide me i
Thanx in Advance …!
Hello Pradeep
Can you put more light on your problem? The description is too brief to be understood.
Read this. http://forum.unity3d.com/threads/97860-Read-this-before-posting-questions-in-the-scripting-section
Give some more details on what you are going to do. ![]()
I take it your using additive loading? Unfortunately the only way to get past this is to make a script that checks if theres already a mainCamera.
[RequireComponent(typeof(Camera))]
class MainCameraChecker : MonoBehaviour {
public enum Action { Replace, UseExisting, };
public Action existAction;
public void Start() {
Camera existingCamera = Camera.mainCamera;
if ( existingCamera existingCamera != camera ) {
switch(existAction) {
case Action.Replace: Destroy(existingCamera.gameObject); break;
case Action.UseExisting: Destroy(gameObject); break;
}
}
}
}
thanx