Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

InvalidOperationException: Calling Scene Raisefrom assembly reloading callbacks are not supported.

//Delay the open scene method call.
private void OpenScene()
{
  EditorApplication.delayCall += OpenSceneDelay;
}

private void OpenSceneDelay()
{
  EditorApplication.delayCall -= OpenSceneDelay;
  EditorSceneManager.OpenScene(ScenePath, OpenSceneMode.Additive);
}
Source by i.kym-cdn.com #
 
PREVIOUS NEXT
Tagged: #Calling #Scene #Raisefrom #assembly #reloading #callbacks
ADD COMMENT
Topic
Name
6+1 =