ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
ArticyObjectWithVertices.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 "ArticyObjectWithVertices.generated.h"
9
10UINTERFACE(MinimalAPI, BlueprintType, meta=(CannotImplementInterfaceInBlueprint))
11class UArticyObjectWithVertices : public UArticyObjectWith_Base { GENERATED_BODY() };
12
17{
18 GENERATED_BODY()
19
20public:
21
22 virtual TArray<FVector2D>& GetVertices()
23 {
24 static const auto& PropName = FName("Vertices");
25 return GetProperty<TArray<FVector2D>>(PropName);
26 }
27
28 UFUNCTION(BlueprintCallable, Category="ArticyObjectWithVertices")
29 virtual const TArray<FVector2D>& GetVertices() const
30 {
31 return const_cast<IArticyObjectWithVertices*>(this)->GetVertices();
32 }
33
34 //---------------------------------------------------------------------------//
35
36 UFUNCTION(BlueprintCallable, Category="ArticyObjectWithVertices")
37 virtual TArray<FVector2D>& SetVertices(UPARAM(ref) const TArray<FVector2D>& Vertices)
38 {
39 return GetVertices() = Vertices;
40 }
41};
Definition ArticyObjectWithVertices.h:17
Definition ArticyObjectWith_Base.h:27
Definition ArticyObjectWithVertices.h:11
Definition ArticyObjectWith_Base.h:12