Unity3D wants to be bigger ;)

Hi everybody. I have got an absolute weird problem and really dunno how to fix it :smile:

I made a game for mobile and webplayer. So far, so good. But when I am starting the game, playin one level and then get back to the main menu, Unity just enters full screen mode, without scripting it or anything …

Does anyone know this issue or how to fix it? I am loading the levels just with Application.LoadLevel, nothing fancy in there.

If you can reproduce the behavior in a new / small scene , please report it to the bug system.

Sounds weird to me , never seen this before.

I don’t think i can reproduce that. Because it is just loading the Scene 0. And when it loads this Scene, it switches to full screen.

tried to rebuild it with my unity, but this doesnt happen here: http://www.1st-issue.de/wp-content/Bug/Bug.html

Here is my code i am using to load a level:

function LoadLevel (levelInt:int, preT:String)
{
	if(preT == "pre1")texture.GetComponent(UITexture).mainTexture = texture1 ;
	if(preT == "pre2")texture.GetComponent(UITexture).mainTexture = texture2 ;
	
	levelLoad.GetComponent(PlayLoad).PlayAnimation(0);
	System.GC.Collect();
	yield WaitForSeconds(1);
	
	if(levelInt == 0){
		Application.LoadLevel("game_menu");
	}else{
		Application.LoadLevel(levelInt);
	}
}

and I just call it in my buttons like:

levelLoader.GetComponent(LevelLoad).LoadLevel(1, "pre1");

But it does not matter if I am calling the int or a name of the first scene, it enters the fullscreen automatically

Ok, shame on me. I just had a function that resizes my game on full hd mobiles to a lower resolution but I didn’t make it platform dependent. trying it now, gonna tell ya if this was the error.

Ok, this was the bug I had to fix. Thanks anyway for your help.