Danny
Danny

Reputation: 842

UI-Element (Image) turns black in Game view, but is normal in Scene view

I want to make a starting screen linking to my menu. Using Shader Graph (unlit Shader) I created a little animation, where the background (an image with the material + Shader) pulsates.

I searched for different solutions, but so far nothing helped. I tried changing the Near/Far values at the main camera. Every label is visible.

Hierarchy

Hierarchy

Scene View

Scene View

Game View

Game View

My Smartphone (Samsung Galaxy S3 neo, running Android 4.4.2) //EDIT: I forgot to mention that the screen was kinda buggy while capturing the screenshot, but I couldn't capture this.

My Smartphone (Samsung Galaxy S3 neo, running Android 4.4.2)

the shader in shadergraph

the shader in shadergraph

I hope this helps. I really don't know what to do since it seems like a graphic issue of some kind.

Thanks in advance.

//UPDATE: I checked (using the Developer Mode on Android) if the screen is updating at the expected rate (presumably almost every frame) and yes, it is. I couldn't see a difference, but something is working.

//UPDATE2: Using the Frame Debugger I found out, that it casts shadows. Since my new question (How to disable shadows in an unlit shader?) differs from my original one, I will close it.

Upvotes: 1

Views: 1020

Answers (1)

Danny
Danny

Reputation: 842

Using the Frame Debugger I found out, that the black color applies when the shadows of the shader are applied.

I hope this helps.

Upvotes: 0

Related Questions