Hey everyone,
I’m currently trying to load a scene which has a gameObject with a specific material attached to in it. If I start the scene itself, it works perfectly well and the material can be seen. However, I want to start the game by pressing a button on a menu screen. Therefore, I’m loading the scene with the gameobject after the scene was chosen from the start menu. The problem is: If I start the game this way, the material is somehow lost and my gameobject is just black. This is the code for the Sceneload:
public void Level1()
{
SceneManager.LoadScene(“Spider_baker_2”);
}
public void DemoLevel()
{
SceneManager.LoadScene(“Level_0”);
}
public void EndScene()
{
SceneManager.UnloadSceneAsync(“Menu 3D”);
}
It tried to use Scenemode.Additive, but then another issue occurs, since I can’t instantiate more instances of my singleton classes from the menu scene. If I then try to develop it for the HoloLens, the application crashes completey, so I’d rather stay away from the Scenemode.Additive.
Has anyone ever had this issue?
Had a similar problem. This worked for me. Thank you!
– BlueAlchemy