I am unable to display a static mesh in the dark.
I want an object to be unaffected by no light so that it looks the same as if there were light. How can I do it?
I am unable to display a static mesh in the dark.
I want an object to be unaffected by no light so that it looks the same as if there were light. How can I do it?
You’ll need to adjust the material settings and rendering properties of the object. Here’s how you can achieve this:
First, create a material that is not affected by lighting.
Material.M_UnlitMaterial.Shading Model to Unlit in the Details panel.Base Color input to a Constant3Vector or Texture Sample node, depending on whether you want a solid color or a texture.Materials section.M_UnlitMaterial) to the mesh.If you need to ensure the object is always visible and not influenced by post-processing or any other rendering effects, you might need to adjust its rendering properties.
Rendering section.Render CustomDepth Pass is checked if you are using custom rendering features.Render in Main Pass to false if you want the object to only render in custom passes (this is more advanced and usually not needed for basic visibility adjustments).If you need to toggle the lighting effect dynamically via Blueprints:
Create Dynamic Material Instance node to create an instance of your unlit material.I hope this helps.