Selector UI and camera output texture

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
LeonSA
Posts: 5
Joined: Sat Sep 03, 2022 7:30 pm

Selector UI and camera output texture

Post by LeonSA »

Hi! I'm trying to use get an oldschool look in my game by using using an Output Texture on my main camera, then using another camera to capture that Render Texture.

The Dialogue System's UI works fine when it comes to dialogue, but my player can't select interactables anymore. Not only the Selector UI doesn't show, but also the input doesn't work - which makes me think that the my player's Selector Component considers the RenderCamera (the one that is actually far away from the scene, just capturing the Render Texture) to be the main camera. Is there a way to change this?


Thanks!

Here's some screenshots:
Attachments
no-output-texture.png
no-output-texture.png (925.66 KiB) Viewed 247 times
output-texture.png
output-texture.png (929.26 KiB) Viewed 247 times
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Selector UI and camera output texture

Post by Tony Li »

Hi,

Make sure your RenderCamera isn't tagged MainCamera and that you regular gameplay camera is tagged MainCamera.

Also, I don't think your RenderCamera will pick up screen space - overlay canvases. I don't know if that's a concern for you or not.
LeonSA
Posts: 5
Joined: Sat Sep 03, 2022 7:30 pm

Re: Selector UI and camera output texture

Post by LeonSA »

thanks for the reply. The cameras were tagged correctly, but I still couldn't make it work. I've decided to not use the output texture anymore, as it wasn't very important for my game anyway.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Selector UI and camera output texture

Post by Tony Li »

Sounds good. If you want to revisit it in the future, let me know.
Post Reply