Get Actor name from FHitResult

hi, i want to get an actor name from this

for example;

if(!hit.actor.name == “Floor”)
return;

You could use “TArray< TSubclassOf< class AActor > >” to have a list of actor types/instances to ignore, It is what I am using.

HTH

Something like

if(Hit.Actor.Get().GetName() != “Floor”)
return;

hi, you know the default floor, it’s no an actor, so it crashes the engine.

Can you post code of what you are currently doing?
The crash probably originates there.