// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
using FlaxEditor.SceneGraph.GUI;
using FlaxEngine;
namespace FlaxEditor.SceneGraph.Actors
{
///
/// Actor tree node for objects.
///
///
[HideInEditor]
public sealed class SceneNode : ActorNode
{
private bool _isEdited;
///
/// Gets or sets a value indicating whether this scene is edited.
///
///
/// true if this scene is edited; otherwise, false.
///
public bool IsEdited
{
get => _isEdited;
set
{
if (_isEdited != value)
{
_isEdited = value;
_treeNode.UpdateText();
}
}
}
///
/// Gets the scene.
///
///
/// The scene.
///
public Scene Scene => _actor as Scene;
///
/// Initializes a new instance of the class.
///
/// The scene.
public SceneNode(Scene scene)
: base(scene, new SceneTreeNode())
{
}
///
public override bool CanCreatePrefab => false;
///
public override bool CanCopyPaste => false;
///
public override bool CanDelete => false;
///
public override bool CanDrag => false;
///
public override SceneNode ParentScene => this;
}
}