Add SceneReference to C++ scripting API
This commit is contained in:
18
Source/Engine/Content/SceneReference.h
Normal file
18
Source/Engine/Content/SceneReference.h
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Engine/Core/Types/Guid.h"
|
||||
|
||||
/// <summary>
|
||||
/// Represents the reference to the scene asset. Stores the unique ID of the scene to reference. Can be used to load the selected scene.
|
||||
/// </summary>
|
||||
API_STRUCT(NoDefault) struct FLAXENGINE_API SceneReference
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_STRUCTURE(SceneReference);
|
||||
|
||||
/// <summary>
|
||||
/// The identifier of the scene asset (and the scene object).
|
||||
/// </summary>
|
||||
API_FIELD() Guid ID;
|
||||
};
|
||||
Reference in New Issue
Block a user