#Object in renderteture has a red tint, or sometimes is completely red.
1 messages · Page 1 of 1 (latest)
in the asset browser, they are normal
i wonder if the items are receiving bad light probes / reflection probes
how would i check that?
don'tdestroy the instance when you're done and see if it looks weird
Okay I didn't destroy the instance, and it's still showing up strange
Also when i keep the gameobjects enabled it still sometimes shows up strange
it seems to happen every other time i start the game
so it's like Correct, Incorrect, Correct, Incorrect it's still unpredictable
this is what they look like when correct
oh, I meant to see how the object looks in the scene view
have you try to make the object material unlit? if its unlit and still tinted red, then its sure there is something wrong in the capturing process
how? i don't see any lighting settings.
should be here, try changing from standard to unlit
that should do, at least now we know that the problem is not in the rendering to texture part
do you have any lights that only affect UI layer?
Shader.Find("Unlit/Texture")
Also my wholeUI is on the default layer
I'll let you know if the colors break again using that shader and it being on the ui layer
The axes are definitely receiving an unwanted light here
I know that you can tell a camera to render a single scene. Perhaps you can load these items into a scene that contains nothing but a single light?
ok so i haven't seen "Unlit/Texture" get strange colors yet so that's good i think
did you change the item's material, or did you change the material used in the UI?
I only added this, i didn't change the default materials in inspector. (since these are instantiated in code)
MeshRenderer meshRenderer = instance.GetComponent<MeshRenderer>();
meshRenderer.materials[0].shader = Shader.Find("Unlit/Texture");
meshRenderer.materials[1].shader = Shader.Find("Unlit/Texture");```