Material

Hello,

I have a question about materials.
I made a portal, when the character goes in the portal he become invisible.
(you can see in the photo of the blueprint)
i want to reset to the default materials after 10 sec.
(there are few elements that i need to change)

how should i do it?

Thank you!

Create a Custom Event in the main graph, add a Delay node. Call the event on Completed. Have the event revert the changes.

1 Like

how do I revert the changes?

How would we know? You say there are few elements you wish to change. Do those small changes. You know what happened when portal was entered, undo that.

the question is how do I reverse to the original materials. there are 6 characters with 6-15 elements. the blueprint that I did changes all of them at once. if I need to change to the original materials manually it will take 70 nodes…
there is a way to go back to the original without all those nodes and check each character and each element?

Thank you

.the question is how do I reverse to the original materials. there are 6 characters with 6-15 elements. the blueprint that I did changes all of them at once. if I need to change to the original materials manually it will take 70 nodes…
there is a way to go back to the original without all those nodes and check each character and each element?

Thank you

Store the originals in an array. Use the array to restore. Besides that, every class can store defaults:

image

Which you can retrieve. But these are Class defaults, not instance defaults. If you want to store some data, use an array, map, set, data table, any container that is suitable.

Each entity could have a Reset To Defaults function you can call. Only you can tell what qualifies as default, of course.


  • pseudoscript

Thank you! I will try that

Hi, I just used get materials and it works :slight_smile:
but now I have a different problem maybe you can help me…
when I’m using a the code from function it doesn’t work. I’m adding a shotscreen.
when I’m using the code without the function is working.


You’re returning too early. And there’s no material selected in the dropdown.

1 Like