Set an object to visible with a trigger box

Hi,
i am new here and work with UE5.1 since 8 weeks. Now i have a problem:

a Blueprint, in my case the police car from the “City Samples Vehicles” is placed in the game an “Actor hidden in game” is on, so not visible in the game. → OK

Now i want this car is not hidden, when the player runs in to a triggerbox (TB_test), who is on the level blueprint.

How can i connect this "Police Car blueprint (named: BP_vehicle13Car) in my Level Blueprint? This is not working :frowning:

I only want to chance the visibility.

Thanks so much

Greetings

Andy

Select your car in the level, then in the level blueprint hold R and left click at free space. You’ll have the reference to your car.

Casting is, in simple terms, is saying “Treat this object as if it were this class”, so it means you need the object. With your can already being of that class, you can use it directly.

1 Like

You can also drag and drop from the World Outliner to the Level Blueprints:

1 Like

so simple :slight_smile:

thanks so much

Andy