Search Unity

canvas prefab does not working different project

Discussion in 'Prefabs' started by alper1yasar, Sep 28, 2021.

  1. alper1yasar

    alper1yasar

    Joined:
    Sep 2, 2021
    Posts:
    1
    I made an object has iclude a canvas. There is button and toggle. It is working correctly. But i export this prefab and import to different project it does not work. I can't click any of them.
     
  2. Peter_Olsted

    Peter_Olsted

    Unity Technologies

    Joined:
    Apr 19, 2021
    Posts:
    75
    Hi, if you think this is a bug in Unity, you are always welcome to create a bug report.
    If you could create an example project it would be very helpful as well as detailed reproduction steps.
     
  3. SomeVVhIteGuy

    SomeVVhIteGuy

    Joined:
    Mar 31, 2018
    Posts:
    162
    canvas' need EventSystems to work properly when there are interactive components like buttons. When you add a canvas to a scene unityeditor immediately adds one, but I doubt it will when adding a prefab. Just also include an EventSystem.
     
    vollukas likes this.
  4. vollukas

    vollukas

    Joined:
    Apr 6, 2019
    Posts:
    7
    Wow you saved me man! I was going mad why it works in only one scene and not others that are using the same prefab! Nice!