Make an object appear for a few seconds

Hi!

How can I make an object appear for a few seconds?
Option 1: Appears every 30 seconds for 5 sec. (in a loop)
Option 2: Appears 5 seconds when I click to an object
First person game
Thanks a lot!

Hey @jdiez.com!

A few questions to get things started:

  • Does this object need to remove collisions?
  • Are you spawning multiple objects?
  • Can you share what you have so far?
  • What is the end goal/the effect you are ultimately trying to achieve? Context may matter.

Any additional specifics you provide may go a long way in solving your problem!

Hi!

This object is just a guide on the floor, no active. It’s a way to show the first person the way out, for a very short time.

Imagine I click an object (button) on the wall and a line appears on the floor to exit for a very short time. Or, this line appears suddenly at random times for 5 seconds. As a hint to exit a large place

I have already the object. I don’t know how to make it appear and disappear with time. Besides, make it appear with a button on the wall will be a plus.

I found this:

Not working for me exactly as it is but with some tweaks. Any idea if you can keyframe opacity?

How is it made?
You can use a material billboard and a visibilty toggle with a delay or a timer, it’s the easier way that comes to my mind

1 Like

Hey @jdiez.com!

Since you are just setting the translucency, an option you can use is a blueprint with a timeline.

  • You will need a base material that has a blend mode set to masked and has dithering enabled for your opacity.
  • Then you will need a material instance with opacity enabled.
  • Finally you will need to create a blueprint of the static mesh you are wanting to use and create a Dynamic Material Instance, then change the Opacity scalar parameter.

Check out this very simple example using a chamfer cube.

Your asset should fade in and out every 5 seconds, and this can be changed to be triggered by an event or set to a certain number of times, etc.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.