Why opacity mask doesnt show in game mode

Hello everyone, I hope you are doing well. I have a question about a material I set up following this tutorial: tutorial_link. When trying to enter the game mode in Unreal 5.1, the opacity mask is not visible. What could be wrong or what do I need to enable to visualize that effect? If you have any answers, I would appreciate it. Thank you!
Mi material settings:


I’m wondering if it’s your scalibility? Can you try on high or epic?

Yes, but doesn’t show any effect.


I saw somewhere in the forums that it could be due to nanite on meshes, that it doesn’t like opacity mask… but I’m literally using the basic UE cube, so I don’t know what it could be.

I loaded the project in UE5.2 and it still doesn’t show the opacity mask effect…

Bizarre… No idea right now :melting_face:

holeMat.zip (52.4 KB)

Did you set your scale & falloff in your material instance?
My example works in editor & game mode in 5.2

Did you setup the blueprint actor correctly to pass in information to the material collection?

1 Like

Thank you Raven!!, for sharing an example. It seems to be a problem in my game mode because I executed your project and still can’t see the opacity mask. I don’t know what it could be, honestly :frowning:

Ok so I did a test and it works in game mode, but I noticed that once I packed the project for windows it no longer shows up. So I’m guessing something needs to be set in the packing process, perhaps a forcefull inclusion of the asset or shader.

OK Got it working in packed!!
You need to call the same function from contruction in on begin play!

In packed (added box collision for ref)

1 Like

Nice one Raven!!!, Now it works, it was exactly as you said, we had to repeat the definition of the construction script in begin play. :astonished:

1 Like

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