Implement 'Set Tangible Plane'
This commit is contained in:
@@ -11,6 +11,19 @@ UTangibleComponent::UTangibleComponent()
|
||||
void UTangibleComponent::Init(UTangibleManager* tm, AActor* a, int64 id)
|
||||
{
|
||||
TangibleManager = tm;
|
||||
Actor = a;
|
||||
OwningActor = a;
|
||||
TangibleId = id;
|
||||
}
|
||||
|
||||
FString UTangibleComponent::GetTangiblePlane(AActor* actor) {
|
||||
UTangibleComponent* comp = actor->GetComponentByClass<UTangibleComponent>();
|
||||
check(comp != nullptr);
|
||||
return comp->Plane;
|
||||
}
|
||||
|
||||
void UTangibleComponent::SetTangiblePlane(AActor* actor, const FString& plane) {
|
||||
UTangibleComponent* comp = actor->GetComponentByClass<UTangibleComponent>();
|
||||
check(comp != nullptr);
|
||||
comp->Plane = plane;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user