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. Dismiss Notice

Please Help With "There is already a virtual axis named 'horizontal' registered

Discussion in 'Scripting' started by ZephyrSpawn, Aug 5, 2017.

Thread Status:
Not open for further replies.
  1. ZephyrSpawn

    ZephyrSpawn

    Joined:
    Aug 5, 2017
    Posts:
    2
    Hello Ev1 and sorry for my bad english.

    i dont know why this is happening, the console give me this error:
    There is already a virtual axis named 'Horizontal' registered
    and
    There is already a virtual axis named 'Vertical' registered
    iv never made any change on the controller scripts, they were fully functional uppon this morning

    (im using the dual touch and jump button controller).
    well an image says more than 1000 words

     
  2. ZephyrSpawn

    ZephyrSpawn

    Joined:
    Aug 5, 2017
    Posts:
    2
    For every one that got this error, erase yur layer, save, close unity, and remake the player (dont reimport from prefab)
     
  3. asadali3274

    asadali3274

    Joined:
    May 12, 2015
    Posts:
    1
    I have a simple solution for this hope this will help..
    Double click on error this will open the script just replace this line
    Debug.LogError("There is already a virtual axis named " + axis.name + " registered.");
    with
    UnRegisterVirtualAxis(axis.name);
    RegisterVirtualAxis (axis);
     
  4. game-rules

    game-rules

    Joined:
    Jan 11, 2014
    Posts:
    45
    The error message is harmless. It is generated by VirtualInput.cs when registering an axis, it checks first if axis has not yet been registered.

    One quick solution would be to remove this debug log error in VirtualInput. However the true question is why the axis is already registered. You should track (debug log) any call to RegisterVirtualAxis to know which scripts and where are registring these axis.

    Game Rules
    Unified Visual Scripting Asset with rules engine
     
  5. Denzy77

    Denzy77

    Joined:
    Jan 5, 2019
    Posts:
    4
    duuuuuuuuuuude men u are a saviour idk if its an old post but it worked thanks dude
     
    chaudharidarshan5556 likes this.
  6. berlingoartificialintelligence

    berlingoartificialintelligence

    Joined:
    Oct 18, 2018
    Posts:
    1
    You are right thank you
     
  7. simba-mupfunya

    simba-mupfunya

    Joined:
    Nov 13, 2018
    Posts:
    4
    2019 and this is still relevent, thnaks!!
     
  8. nir11

    nir11

    Joined:
    Oct 13, 2017
    Posts:
    8

    Yes, still relevant, thank you!!!
    Been going crazy as to why it worked on a 2018 Unity project and not a 2019 project.
     
  9. JoelChala

    JoelChala

    Joined:
    Dec 9, 2019
    Posts:
    2
    2020 and this still works in version 2019.3.12
     
  10. lit2019039

    lit2019039

    Joined:
    May 31, 2020
    Posts:
    1
    This is something I need thank you buddy for your help
     
  11. WINSYGAMES13

    WINSYGAMES13

    Joined:
    Jun 5, 2020
    Posts:
    1
    SIGUE TRABAJANDO GRACIAS MUCHO!
     
    awsapps likes this.
  12. imranmollajoy

    imranmollajoy

    Joined:
    Apr 28, 2020
    Posts:
    3
    Thanks
    Thanks man.
     
  13. mobzz30

    mobzz30

    Joined:
    Jul 20, 2020
    Posts:
    1
    THANKK YOU
     
  14. chaudharidarshan5556

    chaudharidarshan5556

    Joined:
    Mar 12, 2020
    Posts:
    3
    its working
     
  15. umarfarooqfog

    umarfarooqfog

    Joined:
    Jan 11, 2021
    Posts:
    1
    2021 and It's still working !!
     
  16. comando

    comando

    Joined:
    Nov 5, 2018
    Posts:
    2
    Thanks a lot asadali ,right now 03/07/2021 its works GREAT!! a lot
     
  17. tubelightboy

    tubelightboy

    Joined:
    May 12, 2020
    Posts:
    9
    2021, works. This is more logical.. idk why the dev decided to log it as an error though.
     
  18. bergareyaraz

    bergareyaraz

    Joined:
    Aug 30, 2020
    Posts:
    1
    thanks Bro it is completely working on 2021.1.2
     
  19. THE2FUN

    THE2FUN

    Joined:
    Aug 25, 2015
    Posts:
    49
    Still working using 2021.2.12 THANKS DUDE.
     
  20. ehsanfaraji8

    ehsanfaraji8

    Joined:
    Feb 6, 2020
    Posts:
    2
    STILL WORKING
     
  21. gomtangyeee

    gomtangyeee

    Joined:
    May 24, 2022
    Posts:
    3
    Still working in 2022.6.13. Thank You!
     
Thread Status:
Not open for further replies.