canvas prefabs not usable,prefabs of canvas

I have created a canvas with button and input field in scene1. Then a prefab of the same canvas is made and dragged it into scene2. I am not able to use the prefab in scene2. that is the button and input field in scene2 is not clickable or editable respectively. can someone tell me whether i have to create the same canvas in scene1 again in scene2? cant we use the property of prefab in canvas in reusing the same?,

Of course, you can use the canvas prefab, but first, you have to be sure that the event properties of the UI elements are correcly filled.

When you drag and drop a canvas prefab in a scene, it does not have any of the properties or configuration of that canvas used in the previous scene.

So basically, find the events, and relationate them with the scripts of your scene two:

60774-ss2015-12-28at112240.jpg

Be sure that your prefab, have all the canvas that you want to put in your scene, with the canvas, canvas scaler and graphyc raycaster included. If you are using a Screen Space - Camera Render Mode (Property of the Canvas Component) don’t forget to fill the Render Camera Property with the actual Main Camera of the Scene 2.

60775-ss-2015-12-28-at-112813.png

Also, don’t forget to have an Event System GameObject in your scene,

So you’re saying that the prefab comes into scene2, but its functionality doesn’t? It sounds to me like you forgot the components needed for UI interaction, the EventSystem and associated stuff.

When you created a canvas in scene1 it should have also created a gameobject named “EventSystem” with the components “Event System”, “Standalone Input Module”, and “Touch Input Module”. You will need the EventSystem and at least one Input Module in scene2, and the UI should work.

Try copying the EventSystem object from scene1 into scene2 and see if that works.