Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Joystick Pack Works Only on SampleScene

Discussion in 'Prefabs' started by wizenchiko, Dec 6, 2019.

  1. wizenchiko

    wizenchiko

    Joined:
    Dec 6, 2019
    Posts:
    10
    Hello guys. I have problem with Joystick Pack (in Assets Store). On my SampleScene i take joystick prefab "Fixed Joystick" and attached it on Canvas. Then i edit some stuff in playermovement and it works well. So i took my Fixed Joystick from Canvas and made a new Prefab coz of position and image. Then i attached it on another SCENE (called Dungeon) and it doesn work. That Prefab works only on SampleScene. So i tried to use basic prefab prom Asset Store (not edited), and it still doesnt work. The Joystick Pack works only on SampleScene. I tried to add DontDestroyOnLoad() and my joystick get stuck in last direction position. My player uses same Canvas and Player Movement script in all Scenes. https://media.giphy.com/media/QZyADvWO7AMS5JlKQG/giphy.gif . Thanks for help.
     
    samf1111 likes this.
  2. wizenchiko

    wizenchiko

    Joined:
    Dec 6, 2019
    Posts:
    10
    ok i solve that. Imported another Joystick assets. I guess that was bad one or something weird is in my project. I guess it was something bad with my canvas.
     
    Last edited: Dec 6, 2019
  3. samf1111

    samf1111

    Joined:
    Sep 18, 2019
    Posts:
    16
    You need the EventSystem that comes with the Canvas when placed. To get it, just create a new Canvas and remove it but not the EventSystem
     
    cupOfUnityTea likes this.