diff --git a/Source/Engine/Content/SceneReference.h b/Source/Engine/Content/SceneReference.h new file mode 100644 index 000000000..c1e405f4e --- /dev/null +++ b/Source/Engine/Content/SceneReference.h @@ -0,0 +1,18 @@ +// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved. + +#pragma once + +#include "Engine/Core/Types/Guid.h" + +/// +/// Represents the reference to the scene asset. Stores the unique ID of the scene to reference. Can be used to load the selected scene. +/// +API_STRUCT(NoDefault) struct FLAXENGINE_API SceneReference +{ + DECLARE_SCRIPTING_TYPE_STRUCTURE(SceneReference); + + /// + /// The identifier of the scene asset (and the scene object). + /// + API_FIELD() Guid ID; +}; diff --git a/Source/Engine/Engine/SceneReference.cs b/Source/Engine/Engine/SceneReference.cs index 760da842a..c3f22c061 100644 --- a/Source/Engine/Engine/SceneReference.cs +++ b/Source/Engine/Engine/SceneReference.cs @@ -4,16 +4,8 @@ using System; namespace FlaxEngine { - /// - /// Represents the reference to the scene asset. Stores the unique ID of the scene to reference. Can be used to load the selected scene. - /// - public struct SceneReference : IComparable, IComparable, IComparable + partial struct SceneReference : IComparable, IComparable, IComparable { - /// - /// The identifier of the scene asset (and the scene object). - /// - public Guid ID; - /// /// Initializes a new instance of the class. ///