ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
ArticyObjectWithPreviewImage.h
1//
2// Copyright (c) 2023 articy Software GmbH & Co. KG. All rights reserved.
3//
4
5#pragma once
6
7#include "ArticyObjectWith_Base.h"
8#include "ArticyBuiltinTypes.h"
9#include "ArticyObjectWithPreviewImage.generated.h"
10
11UINTERFACE(MinimalAPI, BlueprintType, meta=(CannotImplementInterfaceInBlueprint))
12class UArticyObjectWithPreviewImage : public UArticyObjectWith_Base { GENERATED_BODY() };
13
18{
19 GENERATED_BODY()
20
21public:
22
23 UFUNCTION(BlueprintCallable, Category="ArticyObjectWithPreviewImage")
24 virtual UArticyPreviewImage*& GetPreviewImage()
25 {
26 static const auto& PropName = FName("PreviewImage");
27 return GetProperty<UArticyPreviewImage*>(PropName);
28 }
29
30 virtual const UArticyPreviewImage* GetPreviewImage() const
31 {
32 return const_cast<IArticyObjectWithPreviewImage*>(this)->GetPreviewImage();
33 }
34
35 //---------------------------------------------------------------------------//
36
37 UFUNCTION(BlueprintCallable, Category="ArticyObjectWithPreviewImage")
38 virtual UArticyPreviewImage*& SetPreviewImage(UArticyPreviewImage* PreviewImage)
39 {
40 return GetPreviewImage() = PreviewImage;
41 }
42};
Definition ArticyObjectWithPreviewImage.h:18
Definition ArticyObjectWith_Base.h:27
Definition ArticyObjectWithPreviewImage.h:12
Definition ArticyObjectWith_Base.h:12
Definition ArticyBuiltinTypes.h:16