#Universal Render Pipeline Material Issue

1 messages · Page 1 of 1 (latest)

lapis flame
#

I'm using Universal Render Pipeline Lit on those materials, but when I'm testing it with my VR headset, some of those prefabs went pink, and the pink prefabs only appeared on my left eye and not my right eye. How do I solve this issue?

#

They are all the same materials.

errant needle
#

What are your VR settings?

lapis flame
#

Are you talking about these? And also I use a Pico 4 to test the game through SteamVR.

errant needle
lapis flame
#

Here you go

errant needle
#

Ok it looks ok, can you select your chair while in play mode and see what it looks like in the inspector?

lapis flame
#

This?

errant needle
#

I mean while you're playing and it's pink

lapis flame
errant needle
#

So in edit mode you have three materials applied, but in play mode only 1. What's changing that and what's the new material?

lapis flame
#

The prefab that didn't turn pink still has its material in play mode, but the pink prefab doesn't have any. They both are using the same material.

errant needle
#

You can expand the arrow where it says "Materials" to see what's in the list

lapis flame
#

This is the material used

#

There are total 7 materials in the material folder, but I applied only a single material to all the prefabs

#

I got these assets from unity asset store, so I'm not quite sure about this issue

errant needle
#

While in play mode, on an object with pink colour, expand this dropdown

lapis flame
#

There is no material in the pink prefab but there is a material in the normal prefab

errant needle
#

So that's your issue

#

Some script is removing the materials of your objects or setting it to null

lapis flame
#

Ok I found out what's the problem. The Element 0 Material in Mesh Renderer is the key, If it is none, then the prefab will turn pink in game scene, if there a material in Element 0 then it will work fine. God I don't know why it came like this at the first place. Anyway thanks for your time trying to help me.