ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
ArticyReference.h
1//
2// Copyright (c) 2023 articy Software GmbH & Co. KG. All rights reserved.
3//
4
5#pragma once
6
7#include "CoreMinimal.h"
8#include "ArticyRef.h"
9#include "Components/ActorComponent.h"
10#include "ArticyReference.generated.h"
11
17UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
18class ARTICYRUNTIME_API UArticyReference : public UActorComponent
19{
20 GENERATED_BODY()
21
22public:
24 UArticyReference();
25
30 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Objects")
31 FArticyRef Reference;
32
38 UFUNCTION(BlueprintCallable, Category = "Objects")
39 bool IsValid();
40
47 UFUNCTION(BlueprintCallable, Category = "Objects")
48 UArticyPrimitive* GetObject(const UObject* WorldContext);
49
55 UFUNCTION(BlueprintCallable, Category = "Objects")
56 void SetReference(UArticyObject* Object);
57};