screen fade

How can i make the screen fade from white to the game main camera when game start

There are quite a few examples of this around - you should really try Googling before posting :slight_smile:

The idea is to draw a GUI texture over the screen.

Here’s a c# one:

using UnityEngine;
using System.Collections;
using System;

[Serializable]
public class CameraFade : MonoBehaviour
{
	public static Texture2D Fade;
	public bool fadingOut = false;
	public float alphaFadeValue = 0;
	public float fadeSpeed = 1;

	// Use this for initialization
	void Start ()
	{
		if (Fade == null) {
			Fade = iTween.CameraTexture (new Color (1, 1, 1, 1));
			
		}
	}
	
	// Update is called once per frame
	void OnGUI ()
	{
		alphaFadeValue = Mathf.Clamp01 (alphaFadeValue + ((Time.deltaTime / fadeSpeed) * (fadingOut ? 1 : -1)));
		if (alphaFadeValue != 0) {
			GUI.color = new Color (1, 1, 1, alphaFadeValue);
			GUI.DrawTexture (new Rect (0, 0, Screen.width, Screen.height), Fade);
		}
	}
	
}

Attach it to a scene view object - that is loaded by the scene - set the alphaFadeValue to 1 and fadingOut to true (on the saved scene object). When the scene loads it will fade in from white.

I think you could attach a plane to the camera that fully covers the view, with a full white texture with an alpha channel and with a script gradually change the alpha