// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace Microsoft.MixedReality.Toolkit.SceneSystem
{
///
/// Used by scene system to control when newly loaded scenes are activated.
///
public class SceneActivationToken
{
///
/// When true, the operation is waiting on AllowSceneActivation to be set to true before proceeding.
///
public bool ReadyToProceed { get; private set; } = false;
///
/// Setting this to true grants permission for scene operation to activate loaded scenes.
///
public bool AllowSceneActivation { get; set; } = false;
///
/// Sets ReadyToProceed value
///
public void SetReadyToProceed(bool readyToProceed)
{
ReadyToProceed = readyToProceed;
}
}
}