So I’m experimenting with editor tools, seeing how to create new random tools and whatnot (please keep in mind I’m not too experienced with UE4 and it’s been a long time since I used C++). And came across an issue. I created a ‘Standalone window’ plugin from their options available, and under the OnSpawnPluginTab function I have:
UE_LOG(LogTemp, Warning, TEXT("Opened Plugin"));
for ( TObjectIterator<ACharacter> Itr; Itr; ++Itr)
{
if (Itr->IsSelected())
{
UE_LOG(LogTemp, Warning, TEXT("(FText) location: %"), *Itr->GetActorLocation().ToString());
}
}
works fine and all but it doesnt show the actor location. Upon opening the plugin (whilst having a character actor selected), the console output is:
LogTemp:Warning: Opened Tab
LogTemp:Warning: (FText) location:
without showing the actual location. Im guessing what Im not getting right is what the Itr object actually is, and what stuff I can do with it. (What im eventually trying to get the selected object’s data such as name and location, then I will put it in a sEditableText box to alter it)
Thanks for any help, currently clueless XD