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

UI - Gamestrap : Icons, Shapes, Effects and Tools

Discussion in 'Assets and Asset Store' started by Rodiaz89, Jan 14, 2015.

  1. Rixtter

    Rixtter

    Joined:
    Mar 31, 2014
    Posts:
    242
    Hi Rod, considering a purchase but have one question... Can I use this to also create in-game buttons? My game doesn't require quick-firing type systems, more like selectors where I want to click a button & draw on the game screen.

    Thanks,

    R
     
  2. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Hey Rix,
    First of all, thanks for being interested in Gamestrap UI!

    Now I'm not quite sure I understood the questions but I think it's probably a misunderstanding, Gamestrap UI is an extension of the 'new' Unity's UI default system that came in the version 4.6 so it helps you keep your color palletes, provides a couple of effects, gives you some images/graphics and icons and also allows you to improve your development UI workflow through the custom editor tool. It shouldn't affect if you are working on a quick-firing type button or a regular in-game button, you would use the event system unity provides for that. Hope that helps!
     
  3. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Hey everyone, if you are interested in the asset make sure to get it today since it's in a 24 hour sale for 40% discount!
    Here is the link: http://u3d.as/bgg
     
  4. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    New version is out, Added some cursors, icons and also 3 new effects. Check em' out
     
  5. Baraff

    Baraff

    Joined:
    Aug 16, 2014
    Posts:
    255
    Is there a simple way to change the text colour when the button is highlighted?

    Eg.
    You have white text on black button normal.
    When highlighted you want black text on white button.
     
  6. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    FYI, Gamestrap doesn't include that behavior but that said, you have a couple of options depending on what you are looking for.
    Check out this Unity tutorial on transitions: http://unity3d.com/learn/tutorials/modules/beginner/ui/ui-transitions

    So some of the options could be:
    1. Make a custom script to handle the text color based on the input, using IPointerEnterHandler, IPointerExitHandler, ect..
    2. Make an animator for that button and do the transitions through the Unity animation system which will allow you to not only change both colors but also other stuff.
    3. Make custom images per button state but that limits you a lot since the images will have to have the text.

    Hope that helps!
     
  7. oliknolli

    oliknolli

    Joined:
    Mar 26, 2016
    Posts:
    12
    Hi Rod.
    I made a New Scene for my Start Menu and now I somehow cannot build any Scenes anymore.
    I get this error: Cannot load Atlas Gamestrap Fills During Build/Enter Game. Please rebuild Sprite Atlas

    PS, is it better to PM?
    wasn't sure
     
  8. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
  9. Aslan85

    Aslan85

    Joined:
    Feb 24, 2014
    Posts:
    14
    Hi,

    I'm using Gamestrap UI in my next game, Gurido, release the 21st October on iOS and Android.

    It's an amazing tool!

    With the giving scenes, I learned "what's a good interface" and for example, I reuse (and transform) the "about panel".

    Less is more, I decided to use common icons (share, mail ...) and only two shapes :
    1- Squareout sm (fill & border) -> all panels and "important" buttons.
    2- Round sm (fill & border) -> all other buttons.

    After that, I use the "color editor" to find a good color... but finally, I used the color by default ^^

    With this tool, I did a really big jump in user interface creation. I'm really happy to use it and thinks that I continue to all my future projects.

    Thank you!

    guridoTitleSeasonal.png guridoOptionsReNewUI.png guridoSkinsSeasonal.png
     
    Rodiaz89 likes this.
  10. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    I really appreciate you taking the time to write this stuff down, aside from being very happy that you liked it, it also helps a lot to see what people are looking for with the asset. If you have any feedback of how it can improve don't hesitate to send me a message!
     
  11. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
  12. onatangent

    onatangent

    Joined:
    Nov 12, 2016
    Posts:
    10
    I picked up a copy at the recommendation of a friend. I like the concept and have honestly not had but a brief chance to really look at the asset. However, I opened the Theme Kit and tried clicking the "Generate Palette From Scene" button to see what would happen, but it immediately gives a null reference exception. Looking in the code, the gameObject passed to SearchColorsGameObject is null.

    Should this asset work with any existing scene? Is there any special setup needed to use it? I'm using Unity 5.4.0f3.

    Here's the log info.

    NullReferenceException: Object reference not set to an instance of an object
    Gamestrap.UI.GamestrapUI.SearchColorsGameObject (UnityEngine.GameObject gameObject) (at Assets/Gamestrap/UI/Editor/GamestrapUI.cs:706)
    Gamestrap.UI.GamestrapUI.GetSceneColors () (at Assets/Gamestrap/UI/Editor/GamestrapUI.cs:695)
    Gamestrap.UI.GamestrapUI.OnGUI () (at Assets/Gamestrap/UI/Editor/GamestrapUI.cs:483)
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
     
  13. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Thanks @onatangent for catching that bug, it seems after a specific version you need to use another method, to do a quick fix for now you can replace the issue which is at GamestrapUI.cs Line: 691, the method is called:
    "GetsceneColors"

    Just copy and paste this over the method and it will work then, I'll be sending the update today but they take some time to put it up in the store. Sorry for the inconvenience and have a wonderful Christmas.

    Code (CSharp):
    1.         public void GetSceneColors()
    2.         {
    3. #if UNITY_4_6 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2
    4.         foreach (var root in GamestrapUIHelper.GetSceneGameObjectRoots())
    5. #else
    6.             foreach (var root in UnityEngine.SceneManagement.SceneManager.GetActiveScene().GetRootGameObjects())
    7. #endif
    8.             {
    9.                 SearchColorsGameObject(root);
    10.             }
    11.         }
     
    hopeful and onatangent like this.
  14. onatangent

    onatangent

    Joined:
    Nov 12, 2016
    Posts:
    10
    Thanks so much for this quick response. My apologies for interrupting your Christmas morning. It certainly wasn't my intention, and I wasn't expecting a response til after the holidays.

    Have a blessed Christmas!
     
  15. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    No worries, had a little time in between and it was bugging me :p
    Cheers and have a happy new year!
     
  16. diegzumillo

    diegzumillo

    Joined:
    Jul 26, 2010
    Posts:
    418
    Hey there

    Just wondering if this is an actual guiskin that can be applied to GUI and GUILayout functions or its own thing. Because I'm considering buying this for a project that already has a lot of work done on the standard gui, and I'd like to be able to just add a nice skin over that.
     
  17. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Hey, Gamestrap UI is mainly for the new Unity UI system that came out in 4.6 which is handled by canvases and doesn't involve GUI or GUILayout since that's their old UI system or include any GUISkins. So it won't really help you if your project is using the old system.

    Thanks for being interested in Gamestrap, maybe for your future projects you may want to consider it again, good luck!
     
  18. BeforeTheLight

    BeforeTheLight

    Joined:
    Jan 7, 2011
    Posts:
    168
    Is there anyway to switch the theme at runtime? I would like to give my users the ability to choose their theme and I cannot find a built-in way to do this in the Gamestrap framework. Thanks.
     
  19. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Ah great catch, yeah at the moment you can't change it during runtime but now that you've mentioned it, I'll get right to it. I just have to move some code around and make sure it's all working but I will try my best to get it done this week.
    If you are in a hurry, just send me a PM and I'll send you the updated version once I finish it so you don't have to wait for the time Unity takes to update it in the asset store.
    Thanks for bringing that up, it's an obvious feature that I completely failed to take into account... Cheers!
     
  20. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Alright that was quicker than I thought,
    Just so you know it's an added feature that just applies the theme based on the taggings you assigned it, I modified the tag example so it works during runtime. Here is the example. I added two components so you can use them right away. Hope this helps, I'll be uploading the changes today at some point but like I mentioned before, it usually takes a week or so to be updated in the store, have a great day and if you see anything else don't hesitate to tell me. Cheers!
     
  21. Konsicrafter

    Konsicrafter

    Joined:
    Mar 5, 2016
    Posts:
    4
    Hello,
    I really like this asset, But I have a problem:
    I can't build my game when UI - Gamestrap is in my project.
    I get many build-errors like:
    Assets/Gamestrap/TransitionHelper.cs(7,33): error CS0246: The type or namespace name `MonoBehaviour' could not be found. Are you missing an assembly reference?

    Without UI - GameStrap my game is working fine.
     
  22. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Hey,
    Thanks for letting me know, since I'm not getting the same compilation error I'm assuming that there is a class with the same name as "TransitionHelper" that I use in your project. So the quick fix for now should be just deleting the "TransitionHelper.cs" file under "Gamestrap/TransitionHelper.cs" and that should make the error go away, I'll do an update with the namespace fix if that's the case. If that doesn't do it then I'll have to look deeper at the issue, you can send me a pm and we can get into the details like what version you are using, other assets, etc...

    Hope this helps and I'll be waiting for your response to see if the problem was solved or not. Thanks!
     
  23. Konsicrafter

    Konsicrafter

    Joined:
    Mar 5, 2016
    Posts:
    4

    Hello again,
    I found the problem. I was using the new unity beta 5.6. The building didn't work there, in none of my projects it worked.
    Sorry to concern you with this silly problem. Everything works fine now. Your asset will a 5* rating from me.

    Have a nice day and thank you for your quick answer!
     
    Rodiaz89 likes this.
  24. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
  25. jwvanderbeck

    jwvanderbeck

    Joined:
    Dec 4, 2014
    Posts:
    820
    Is there a way to get the theme color system to work with non unity UI elements? For example I have my own PushButton class that acts more like a normal pushbutton rather than Untiy's buggy one, but it obviously doesn't have the same exact color properties as the built in ones.
     
  26. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    At the moment there is no straightforward way to do so, also it depends on how your system is set up and how much you can adjust both Gamestrap UI and your system.

    You would either have to extend from the UnityEngine.UI.Button class (which I'm guessing is not a good option) or adjust a couple of things in the GamestrapUI.cs

    I haven't been asked that question before and I think it would pretty neat to build a small API to connect with the colors which shouldn't be that bad to implement. The effects are a bit more specific for the Unity UI system but maybe it can work as well. PM me if you are interested in getting it to work with a bit more detail on exactly what you are looking for.
     
  27. jwvanderbeck

    jwvanderbeck

    Joined:
    Dec 4, 2014
    Posts:
    820
    Yeah an API would be fine by me. Perhaps have an interface that the UI control needs to implement, then Bootstrap can just call that interface to set the colors, though you will still need fallback code the the default Unity Selectable.
     
    Rodiaz89 likes this.
  28. jwvanderbeck

    jwvanderbeck

    Joined:
    Dec 4, 2014
    Posts:
    820
    So a couple more thoughts/things as I start digging in and using this asset. I bought it a long time ago but just now getting around to using it :)

    Still in the color thingy, as that is my main focus right now. Setting each control manually is proving to be very time consuming.

    1. There doesn't seem to be an option for the Text color. Most controls have a Text component, either it be the button label, the dropdown labels, etc or even just a Label control. Right now there doesn't seem to be an option to set that Text color. In some of my tests it seems it might be using the "Default" color for the text? That would be bad though for things like buttons as then the button and the label end up the same color :)
    2. If I select my top level panel, and select a color swatch, then click on "Selected" to apply the color set, I am only seeing one control in my entire panel get set. That one control is a "Toggle" Unity widget. All the others, for example Dropdown objects, and Labels, are not changing.

    EDIT: Ok a bit more testing. Looks like standard Unity Button, Toggle, and Slider do get colored. Dropdown and Text objects do not. Furthermore the "Detail" color is kind of inconsistent in that in some cases, like the Button it applies to the text label, but in other cases like the Toggle the label gets the Default color instead. Also noticing that the slider background bar doesn't get affected by any of the colors.

    I really like this tool. As I said manually going in and setting the color of everything in a UI is a lot of work. If it could fill in a bit more it would be even better :)

    Just my initial thoughts.
     
  29. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Yeah I definitely appreciate your feedback, it's pretty great and it hits right in the head of how to make it simpler to assign colors without much setup.

    The detail color is meant to be applied usually to child objects of main UI elements such as buttons, toggles, etc... They can be either images or text (images since sometimes it's an icon instead of text) but as you've mentioned before it's always going to lack some special cases, that being said I'll look into the slider.

    Also sometimes it's difficult to pinpoint what to assign where since the context of the hierarchy selection might mean a different kind of color assignment, for example selecting a whole panel with other panels and buttons inside, compared to a button with both an text and image as children. It's been something I've tried improving but lately no one really had mentioned it was an issue, I'll give it some more thought since that system was setup about two years ago to see where and how it can improve, thanks again for the thoughtful message!
     
  30. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Hey everyone, I haven't done an update in a while since I've been focusing on a whole new version of Gamestrap 5.0

    The change is pretty drastic and I'm looking for people who are interested in doing some beta testing before I release the new version out, let me know by either a pm or sending me an email to contact[at]gamestrap.info.


    New Features:
    - Editor UI has been reworked completely
    - New way of grouping your palette
    - New/Smarter way of assigning colors and effects to the UI
    - An API for custom implementations
    - New icons
    - New UI examples
    - Possible Color assignment for SpriteRenderer groups for 2D games

    Also if you have any suggestions now is the perfect time to tell them to see if I can integrate them to the new version.
     
  31. m3ndi3

    m3ndi3

    Joined:
    Mar 6, 2012
    Posts:
    18
    Hey I am looking at your plugin and it looks perfect for me to use on my current and future projects! I know you are working on Version 5 and was wondering how far along you were? If I were to purchase V4, would I have to redo everything when V5 comes out?
     
  32. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Hey glad you read up that there is a new version coming out. The 5th version is pretty much finished, what's taking long is the documentation, examples, video, etc... Mostly is finding the time to get it all done.
    If you buy or already bought Gamestrap, just send me an email with the invoice I can send you the new version because it's very different from what it's currently there and it'll be definitely worth it.
     
    boysenberry likes this.
  33. kukuhbasuki

    kukuhbasuki

    Joined:
    Apr 13, 2016
    Posts:
    29
    when the new version will coming?
     
    hopeful likes this.
  34. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    It's been a bit of a hurdle for me to get some time to finish up the documentation and tutorials since it requires a lot of investment to get it all right and I've been dealing with some personal stuff on my end. That being said, I can't ignore a user request so I'll try to at least get some video tutorials about the new version out this month to both continue with the process and get some feedback. I apologize for the long delay.
     
    kukuhbasuki and hopeful like this.
  35. kukuhbasuki

    kukuhbasuki

    Joined:
    Apr 13, 2016
    Posts:
    29
    Cool. Can't wait to try the update.
     
    Rodiaz89 likes this.
  36. Rixtter

    Rixtter

    Joined:
    Mar 31, 2014
    Posts:
    242
    Excellent timing for me, bought this a while back & only getting ready to use it now :)
     
    Rodiaz89 likes this.
  37. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    A bit late but as promised, here is a new video explaining one of the biggest changes that Gamestrap 5.0 will have. There will be more coming up and I'm looking to finally publish the new version by end of July. Let me know if you have any feedback!
     
    hopeful likes this.
  38. kukuhbasuki

    kukuhbasuki

    Joined:
    Apr 13, 2016
    Posts:
    29
    Nice features!
     
  39. Barritico

    Barritico

    Joined:
    Jun 9, 2017
    Posts:
    372
    Hi.

    Will version 5 be an update of the previous one or will it have a price increase?
    I ask to buy the current version or to wait for the new one.

    Thank you.
     
  40. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    The new version will be a complete rework of the previous versions, so you can't really migrate much from the previous versions since the color management concept changes quite a bit.

    That being said, I'm not planning to increase the price when I release it, it might increase a bit later on depending on how the features grow though.

    Hope this helps!
     
    Barritico likes this.
  41. Barritico

    Barritico

    Joined:
    Jun 9, 2017
    Posts:
    372
    Ok.
    Then I will wait impatiently for the new version.
    Is there an estimated date for its release?

    Thank you.
     
  42. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    I'll do my best to get the version out this upcoming week, but after uploading the version then Unity takes about a week or two to actually publish it.

    Thanks for your impatience :D
     
    Barritico likes this.
  43. AngelBeatsZzz

    AngelBeatsZzz

    Joined:
    Nov 24, 2017
    Posts:
    239
    Hi,any news about 5.0 updates?
     
  44. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Sadly not at the moment. I've had to change jobs/move to another city so all of the plans kinda got delayed due to it. I'm finally settling in and I'll be able to keep working on the documentation and fixing bugs as I find them this upcoming month. I hope to get it out around November. If you want to try the beta version feel free to contact me, thanks for checking in!
     
  45. AngelBeatsZzz

    AngelBeatsZzz

    Joined:
    Nov 24, 2017
    Posts:
    239
    Understand,thanks for reply.
     
  46. AngelBeatsZzz

    AngelBeatsZzz

    Joined:
    Nov 24, 2017
    Posts:
    239
    Hi, I am still waiting for version 5.0. I hope that version 5.0 can add some new sliced shapes and borders.:)
     
  47. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    We just finalized the first release candidate version and we'll be working on completing everything this month, if you have any suggestions for new borders and shapes feel free to share them here and we'll see if we can add them.
     
  48. Rodiaz89

    Rodiaz89

    Joined:
    Apr 11, 2014
    Posts:
    136
    Alright everyone, I'm announcing finally the new version of Gamestrap 5.0. It's out!!!

    Before you get excited though, please note that upgrading Gamestrap UI can cause issues since it has been completely reworked in many ways so you will probably lose some references and colors on the way.

    That being said I hope you like the new version of the tool and let me know if you have any feedback, this time it should be easier to get updates a bit quicker than before. Check out the documentation, it's improved quite a bit and it might help you get started with this new system.

    Thanks for your patience!! Here is the new trailer:
     
    hopeful likes this.