Load TangibleActor by name in TangibleManager

This commit is contained in:
2024-01-22 17:11:21 -05:00
parent 704a2edb36
commit fa045af87f
13 changed files with 26 additions and 25 deletions

View File

@@ -11,12 +11,14 @@ using IdArray = UlxTangibleManager::IdArray;
UlxTangibleManager::UlxTangibleManager() {
World = nullptr;
ClassTangibleActor = nullptr;
ClassTangibleActor = LoadObject<UClass>(nullptr, TEXT("/Game/Tangibles/TangibleStaticMesh.TangibleStaticMesh_C"));
static ConstructorHelpers::FClassFinder<AActor> Asset(TEXT("/Game/Tangibles/TangibleStaticMesh"));
// if(Asset.Succeeded())
// ClassTangibleActor = Asset.Class;
}
void UlxTangibleManager::Init(UWorld* world, UClass* tanact) {
void UlxTangibleManager::Init(UWorld* world) {
World = world;
ClassTangibleActor = tanact;
}
UlxTangible* UlxTangibleManager::GetTangible(int64 id) const {