Implement 'Set Tangible Plane'

This commit is contained in:
2023-09-25 18:32:05 -04:00
parent 254524aab6
commit cc6509a69c
3 changed files with 26 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ public:
// The actor that we're a part of.
UPROPERTY()
TWeakObjectPtr<AActor> Actor;
TWeakObjectPtr<AActor> OwningActor;
// Our tangible Manager.
UPROPERTY()
@@ -50,7 +50,15 @@ public:
// Current Plane.
FString Plane;
public:
void Init(UTangibleManager* tm, AActor* a, int64 id);
AActor* GetActor() const { return Actor.Get(); }
AActor* GetActor() const { return OwningActor.Get(); }
public:
UFUNCTION(BlueprintCallable, Meta = (DefaultToSelf = "target"), Category = Luprex)
static FString GetTangiblePlane(AActor* target);
UFUNCTION(BlueprintCallable, Meta = (DefaultToSelf = "target"), Category = Luprex)
static void SetTangiblePlane(AActor* target, const FString& plane);
};