AsyncOperation和SceneManager.LoadSceneAsync协同加载场景

这篇属于杂记,用于记录不甚理解的AsyncOperation

AsyncOperation;

//加载进度条

public Silder silder;

加载场景

public void LoginGame()
{
asyncoperation = SceneManager.LoadSceneAsync(1);
}

public void Update()

{

if(asyncoperation !=null)

{

silder进度条的数值与操作数的进程属性相等;

silder=asyncoperation.progress;//c操作数的进程属性的变化值范围默认的是0-1;

}

}

posted on 2017-02-23 20:04  ThisIsRone  阅读(830)  评论(0编辑  收藏  举报

导航