UI toggle

Hi all
I am making a UI for the game I just finished creating. I want to know if I make a menu/UI with buttons and toggle, would I need to make this on a seperate scene. Reason being is that I am using the toggle tool so when I click on it, it shows an object that is invisible. Would this toggle function work on a seperate scene? Or would it have to be on the same scene?

Same scene. Or you could build it in a different scene and load the scene additively, that’s another approach.

If I build it on another scene, how would it know what objects to toggle?

It depends of your code architecture.
Most of time you have scripts that travel through scene (DontDestroyOnLoad()) that contains informations, so if u need to initialize something u could just refer to those scripts.