Things working in Editor but not in Build (449602)

Hi All

There are a few things that I’ve scripted that work fine in the editor but not in any builds (both Web and Standalone). Is this a known issue? The two things are:

An intro scene that plays a movie file, yields for 7 seconds then loads the main menu. In the build it simply skips this intro scene altogether.

function Start () {
	renderer.material.mainTexture.Play();
	yield WaitForSeconds(7);
	Application.LoadLevel ("36802_StartMenu");
}

A script that tweaks a few parameters in a custom image based effect script (REPostProcessor), when the camera dips below 75 in the y-axis. Again, works fine in the editor but in any builds nothing changes.

var underwater = 75;
var camerablur1 : Camera;
var camerablur2 : Camera;

function Update () { 

	var Blur1 = camerablur1.GetComponent("WaterBlur");
	var Blur2 = camerablur2.GetComponent("WaterBlur");
	var UWB1 = camerablur1.GetComponent("REPostProcessorEffect");
	var UWB2 = camerablur2.GetComponent("REPostProcessorEffect");
	
		if(camerablur1.transform.position.y <= underwater)
			{
				Blur1.enabled = true;
				UWB1.BloomCombineIntensityMultiply = 5;
				UWB1.BloomTint = new Color(1,1,1,1);
			}
			else
			{
				Blur1.enabled = false;
				UWB1.BloomCombineIntensityMultiply = 0.06;
				UWB1.BloomTint = new Color(1,1,0.5,1);
			}
	
		if(camerablur2.transform.position.y <= underwater)
			{
				Blur2.enabled = true;
				UWB2.BloomCombineIntensityMultiply = 5;
				UWB2.BloomTint = new Color(1,1,1,1);
			}
			else
			{
				Blur2.enabled = false;
				UWB2.BloomCombineIntensityMultiply = 0.06;
				UWB2.BloomTint = new Color(1,1,0.5,1);				
			}
	
}

Funnily enough in this example the Blur does work, it’s just the Bloom that doesn’t…

I’m new to scripting, but these two things took me ages to figure out :slight_smile: , so it’s damn frustrating that they won’t work anymore!

Any hints would be appreciated.

Thanks

So I got the first one sorted, I just had to reshuffle the scene order in the build menu, but the second one is still puzzling me.