Applying Main Camera CRT Effect to Dialogue Canvas

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Nokinori
Posts: 9
Joined: Tue Jun 27, 2023 5:11 pm

Applying Main Camera CRT Effect to Dialogue Canvas

Post by Nokinori »

Hello,

I'm using a heavily edited VN Template for my dialogue. I've attached a script to main camera which uses a shader, materials, and textures to render a CRT filter. The dialogue manager's canvas components are not included in the render, and I'm having trouble figuring out how to fix that. I would like them to also inherit the CRT effect.
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: Applying Main Camera CRT Effect to Dialogue Canvas

Post by Tony Li »

Hi,

If your dialogue UI is in a space space - overlay canvas then it won't be affected by your CRT effect unless it's a screen space effect. Try changing the canvas to screen space - camera.
Nokinori
Posts: 9
Joined: Tue Jun 27, 2023 5:11 pm

Re: Applying Main Camera CRT Effect to Dialogue Canvas

Post by Nokinori »

That works perfectly, thank you. I've still got a lot to learn about Unity, I appreciate the help!
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: Applying Main Camera CRT Effect to Dialogue Canvas

Post by Tony Li »

Glad to help!
Post Reply