столкнулся с проблемой розового скайбокса на сцене.
Сцену гружу с сервера таким образом:
Синтаксис:
Используется csharp
IEnumerator DownloadAndCache()
{
while (!Caching.ready)
yield return 0;
var www = WWW.LoadFromCacheOrDownload(BundleUrl, 2);
yield return www;
if(!string.IsNullOrEmpty(www.error))
{
Debug.Log(hwww.error);
yield break;
}
Debug.Log("BNDL loaded!");
var assetBundle = www.assetBundle;
if (assetBundle.isStreamedSceneAssetBundle)
{
string[] scenePaths = assetBundle.GetAllScenePaths();
string sceneName = System.IO.Path.GetFileNameWithoutExtension(scenePaths[0]);
SceneManager.LoadScene(sceneName);
}
{
while (!Caching.ready)
yield return 0;
var www = WWW.LoadFromCacheOrDownload(BundleUrl, 2);
yield return www;
if(!string.IsNullOrEmpty(www.error))
{
Debug.Log(hwww.error);
yield break;
}
Debug.Log("BNDL loaded!");
var assetBundle = www.assetBundle;
if (assetBundle.isStreamedSceneAssetBundle)
{
string[] scenePaths = assetBundle.GetAllScenePaths();
string sceneName = System.IO.Path.GetFileNameWithoutExtension(scenePaths[0]);
SceneManager.LoadScene(sceneName);
}
все объекты на сцене отображаются нормально, а вот задний фон - нет.
Заранее спасибо,
gerFid