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

Standalone Input Module sources?

Discussion in 'UGUI & TextMesh Pro' started by Foxxis, Oct 9, 2014.

  1. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    Hi,

    Has the source to the Standalone Input Module been released yet? I would like to take a look at it an possibly modify it....?

    Thanks in advance!
     
  2. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    Bump!
     
  3. shkar-noori

    shkar-noori

    Joined:
    Jun 10, 2013
    Posts:
    833
    I think it will be released with 4.6.
     
  4. hovio

    hovio

    Joined:
    Oct 1, 2014
    Posts:
    4
    Foxxis likes this.
  5. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    Yes, there it is! Many thanks for the help! :)
     
  6. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    Ok, I get a bunch of errors using that code for the Standalone Input Module...?

    ...and so on (26 errors in total). Is that code obsolete..? If so is there a new version somewhere? I do need to customize the standalone input module to accept other keystrokes as UI navigation commands...
    TIA!
     
  7. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    I managed to fix the incompatibilities with b21, but rc1 breaks even more of the Standanlone Input Module source on GIT. (33 errors)
    Would it be too much to ask that the source for the standalone modules are kept up to date? I cannot be the only one needing to reference that code to augment it for our needs...?

    Sure, I could wade through it and attempt to fix it but it is a big waste of time. Please?
     
    shkar-noori likes this.
  8. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    we are working on the proper official source code location so if you could wait for that it would help us out :)
     
  9. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    Thanks! Depends on how long that will take. ;) If it is a while coming still I would really appreciate if you would just update the content on the GIT in the meantime. :)
     
  10. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    I don't know how long till its out, and I would if i had access to the GIT repo and the "please wait" came from the guy who does.
     
  11. shkar-noori

    shkar-noori

    Joined:
    Jun 10, 2013
    Posts:
    833
    please make it a bit fast, I think we need a lot changes for our selves, like normal fading and position tweening of controls, stuff like CanvasGroup.FadeIn , FadeOut, we could do this stuff with the source in our hands easier
     
  12. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    Fair enough. Please tell the guy who has access to hurry up or please update the GIT source. ;)
     
  13. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    *cough* ahem... Any chance we might get access to the new source soon....? ;)
     
  14. shkar-noori

    shkar-noori

    Joined:
    Jun 10, 2013
    Posts:
    833
    here is the source for the whole UI System.
     
  15. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    Thanks, I must have missed that announcement! :)
     
  16. shkar-noori

    shkar-noori

    Joined:
    Jun 10, 2013
    Posts:
    833
    there was no announcement AFAIK
     
  17. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,181
    It was in the open source blog post.
     
    shkar-noori likes this.
  18. shkar-noori

    shkar-noori

    Joined:
    Jun 10, 2013
    Posts:
    833
    must've missed it too, but i use bitbucket alot :D
     
  19. jrhtcg

    jrhtcg

    Joined:
    Jul 13, 2013
    Posts:
    34
    Question:

    I created a copy of StandaloneInputModule.cs and gave the class a unique name. I also changed the line:

    [AddComponentMenu("Event/Standalone Input Module")]
    to
    [AddComponentMenu("Event/My Input Module")]

    When I compile the module in an external DLL the Unity editor does not appear to see the AddComponentMenu option, nor can I access it as a script. If I place the new .cs file in the asset folder instead of an external DLL everything works as expected.

    I would really like to keep this source with my other scripts in a DLL, but so far no joy. Does anyone know if there is some other magic that I need to use in order for this to work from my DLL?

    Thanks in advance for any help or advice.
     
  20. jrhtcg

    jrhtcg

    Joined:
    Jul 13, 2013
    Posts:
    34
    I figured out a work around that works for me. I can attach my custom input module using code like:

    GameObject go = GameObject.Find("EventSystem");
    go.AddComponent<WfInputModule>();

    It would still be nice to have Unity's editor see my input module, but the above patch will work for now.
     
  21. ChricKCK

    ChricKCK

    Joined:
    May 9, 2014
    Posts:
    8
    The Unity UI source in BitBucket looks to be out-of-date. The last submit is from Unity 4.6.

    Is there a recent version of the StandaloneInputModule component source code?

    Thanks.
     
  22. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    @ChricKCK

    Hi there, I know very little about UI source, but I remember when I last checked it, that you have to select correct version from a drop down, located in upper left part of window, below heading... latest one seems to be for 5.5

    https://bitbucket.org/Unity-Technologies/ui/src
     
  23. vuplex

    vuplex

    Joined:
    May 11, 2017
    Posts:
    14
    JTSuda likes this.