Version: 2018.1
public static bool MarkSceneDirty (SceneManagement.Scene scene);

Parameters

sceneThe Scene to be marked as modified.

Returns

bool Whether the Scene was successfully marked as dirty.

Description

Mark the specified Scene as modified.

This function marks the specified Scene in the Editor as modified (having unsaved changes).