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

UMA Character System (deprecated)

Discussion in 'Assets and Asset Store' started by Jaimi, Dec 1, 2015.

  1. davidosullivan

    davidosullivan

    Joined:
    Jun 9, 2015
    Posts:
    387
    Yeah I know they could co-exist, but the point of my way was to NOT have dictionaries of instantiated objects that are not being used hanging around. i.e. if you have a scene where the user can choose ANY Shirt from all the shirts you have (and there could be 1000) then in that scene CharacterSystem loads 1000 shirts, but then in another scene where that character is just on his own, CharacterSystem only needs to load the shirt he has. Using the DynamicSlotLibrary, putting all your slots in Resources or an asset bundle, and with my 'DynamicCharacterAvatar' and DynamicCharacterSystem thats what happens...
     
  2. davidosullivan

    davidosullivan

    Joined:
    Jun 9, 2015
    Posts:
    387
    Its very exciting really, because you could have dynamic races too (which I need because I have my own race- and which I think the male/Female enum should actually be) and then CharacterSystem can provide an interface for switching race AND outfits for that race. That would make UMA an AWESOME tool for any game developer because it would free them from having to use UMA stock characters...
     
    Moerk75 likes this.
  3. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    I Agree, will be awesome. I'm currently working on getting CharacterFX updated on the asset store, should be able to get back to this soon.
     
    Moerk75 and hopeful like this.
  4. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    I've updated the Character System to the latest version.

    Includes updated "editor" scene, that lets you edit the wardrobe (including faces, brows, shirts, pants), all defined colors, and all DNA. Uses default UMA slots and overlays.

    Various fixes and improvements to the code. I'll start working on moving it into the UMA code base next.

    http://www.aztica.com/images/UMACharacterSystem.zip
     
  5. davidosullivan

    davidosullivan

    Joined:
    Jun 9, 2015
    Posts:
    387
    Hey Jaimi, all the improvements you have made there are awesome :)
    Just wondering what 'BoundsOffset' is for in CharacterAvatar?
     
  6. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    That's for resetting the bounds on the SkinnedMeshRenderer. This gives you the ability to move the bounding box so it's correctly culled/animated.
     
  7. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    Hey, Jaimi! Your asset CharacterFX looks really cool, especially the coloring during runtime.

    Could this be applied to UMA clothing, allowing players to change the color of their clothing? Just curious. It sort of belongs here since it is UMA related. lol
     
    Vinchinderlous likes this.
  8. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    Yes, actually it could - but you don't really need the character colorizer, because you can do the same thing with Shared Colors and overlays in UMA. :)
     
  9. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    Oh, true!
     
    Vinchinderlous likes this.
  10. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    If you haven't looked at the update I uploaded yesterday, I have a sample scene that shows how to do this - it has a pretty complete character editor in it (lets you edit the DNA, Wardrobe, Colors).
     
    hopeful likes this.
  11. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,630
    CharacterFX! Now that's a blast from the past. :)

    I remember popping that into my wish list back in 2013. I didn't pick it up because I was going to use UMA and wasn't sure how to integrate a shader. Especially since UMA wasn't available till Christmas of that year. lol

    Actually, now that I think about it, that story may not be technically true. I'm not sure we had wish lists yet, in 2013. :)
     
  12. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    I will have to do that! I find myself at the moment with about a thousand things to do and not getting any one of them done. lol UMA is on hold for the moment while I work on artwork for buildings. But when I get a chance, I will take a break and check it out.

    Thanks, Jaimi!
     
    Vinchinderlous likes this.
  13. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    Jaimi, I can't see to use your Character System with the newest Github version of UMA. I get errors about WriteAllText.

    Since you included UMA with the Character System, I am not sure how to update UMA with it. It is not as easy as just putting it on top of the Character System.

    I am not using the Wardrobe thing, but your original Character system. Is that now obsolete?
     
    Vinchinderlous likes this.
  14. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    Hi - it should work with the latest. Did you change Unity versions or anything? What line are you getting the error on, and what is the message?

    I'm preparing a new version (David Sullivan did a lot of work to make it more configurable and work with asset bundles), but it's a big change (and a bit more complicated). I'm in the middle of trying to make it more user friendly, Definitely not obsolete - but may require a conversion when the new version is done.
     
  15. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    Assets/UMA/Extensions/CharacterSystem/CharacterSystem.cs(90,28): error CS0117: `System.IO.File' does not contain a definition for `ReadAllText'

    I am not sure if I updated UMA correctly. I put in the new UMA, and then imported your system. Should I have done it the other way around? Also, I am using 5.3.4. Previously, I had 5.3.2 in my old project. This is a brand new project though.
     
    Vinchinderlous likes this.
  16. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    That is great. I really like the way recipes work. :) I have a self-imposed deadline for a project involving UMAs and Will's clothing so was hoping to get this done this week. I am just making prefabs, poor things.
     
    Vinchinderlous likes this.
  17. runningbird

    runningbird

    Joined:
    Sep 3, 2009
    Posts:
    382
    Make sure that your project is set to a Desktop app and make sure it's .net 2.0 and not .net 2.0 subset.
     
  18. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    Yeah, did all that. I am working it out I think.
     
    Vinchinderlous likes this.
  19. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    You did the right order. Since it's a new project, I think the problem is likely that the player settings are probably set to ".Net 2.0 Subset" instead of ".Net 2.0" - for some reason Unity seems to strip out File I/O in the subset. If that's not it, let me know and I'll dig around.

    It will probably be *at least* another week (maybe two) before I finish the update. But still you should be good to go with what you have.
     
  20. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    haha, I'm kind of late it looks like!
     
  21. runningbird

    runningbird

    Joined:
    Sep 3, 2009
    Posts:
    382
    I'm working on using http://api.shephertz.com/ for saving and loading my characters for my online game.
    This would get rid of the File I/O issue since you wouldn't need to write to your local device.

    It will be a entire system for saving loading etc your characters and players etc using the Wardrobe example here.

    I'm still working on the saving the multiple characters per user and a character choose or create screen.
    Once I'm done you can check it out if you want Teila
     
  22. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    I would love to check it out. :)
     
    Vinchinderlous likes this.
  23. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    Well, I certainly entertained Joen and Victor on the UMA Slack channel while they tried to help through something that I totally didn't understand. LOL I sometimes feel very sorry for those guys, having to deal with the "blonde" in me.

    Not sure what happened but I think I will figure it out soon.
     
    Vinchinderlous likes this.
  24. UnLogick

    UnLogick

    Joined:
    Jun 11, 2011
    Posts:
    1,745
    We have a FileUtils helper class with a ReadAllText replacement that works on all platforms, please use that one.

    Let me just make clear that it's not a valid solution to require a certain platform or certain settings. UMA should work on all platforms with all unity settings.

    We're only now considering dropping Unity 4.x support in the asset store!
     
  25. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    Sure - I'll change that.
     
  26. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    Jaimi, the problem seems to be that your original Character System is not compatible with the most recent UMA. I get an WriteAllAccess error as soon as I put in the CS. I will have to continue using the old UMA until yours is updated, if you plan to update it.

    I could try your wardrobe system, but not sure I want to take the time to learn it all over again. :)
     
  27. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    Okay, fixed, thanks to Victor and David on the UMA slack channel.
    David will fill you in on the changes, Jaimi. He is much better than me at explaining. :)
     
    hopeful likes this.
  28. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    Just an FYI on this - We're preparing to release a new version of UMA and it has the new CharacterSystem built in. It has grown quite a bit thanks to David's changes and is now completely dynamic. I expect the update will be ready in a short while, as soon as testing is completed.
     
  29. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,630
    David's changes are the ones bringing asset bundles to UMA?
     
  30. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    Yes indeed - Support for downloading complete races (with DNA), slots, overlays and recipes on the fly.
     
  31. buronix

    buronix

    Joined:
    Dec 11, 2013
    Posts:
    111
    Great News!!

    Right now, my most worry is about a Uma Lod system, is there any possibility to implement it?
     
  32. arteria

    arteria

    Joined:
    May 31, 2007
    Posts:
    2,190
    Last edited: Nov 11, 2016
    runningbird likes this.
  33. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    We implemented an LOD system using code. You should be able to do it as well.
     
  34. buronix

    buronix

    Joined:
    Dec 11, 2013
    Posts:
    111
    Maybe I need to learn more about Uma, I really implemented it in a basic mode and move out to other parts of my project, 2 much work to do for a single man, but if its possible then I will need to learn how to do it, some quick guides to start looking into it?

    Thanks anyway to let me know its possible!

    Regards.

    Ruben.
     
  35. Teila

    Teila

    Joined:
    Jan 13, 2013
    Posts:
    6,929
    Yeah, not much out there yet. I didn't do it, my programmers did. lol But they say it is easy....doesn't help you much, I know. There are LOD examples in the UMA asset. Check out that scene and see if it makes sense.
     
  36. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    There's a simple LOD sample scene in the new release (in the Unity53 branch on Github), and there's a more robust LOD solution in Joen's power tools if you need more as well.
     
    Teila likes this.
  37. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
  38. arteria

    arteria

    Joined:
    May 31, 2007
    Posts:
    2,190
    Jaimi and runningbird like this.
  39. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
  40. runningbird

    runningbird

    Joined:
    Sep 3, 2009
    Posts:
    382
    arteria likes this.
  41. arteria

    arteria

    Joined:
    May 31, 2007
    Posts:
    2,190
    Thank you, many more to follow. Im converting all my fuse costumes
     
  42. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    4,013
    I imported this into my UMA test project and it gave the following error:

    Assets/Standard Assets/UMA/Core/Scripts/UMASkeletonDefault.cs(9,36): error CS0246: The type or namespace name `UMASkeleton' could not be found. Are you missing an assembly reference?

    [EDIT]
    Tried on Unity 2017.1.3f1
     
  43. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    This was merged into UMA in release 2.5, and became "DynamicCharacterAvatar". This older code only works with UMA 2. I recommend sticking with the DynamicCharacterAvatar in UMA 2.7.
     
  44. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    4,013
    Oh, so it's already in the UMA package? Great.
     
  45. Shreddinger

    Shreddinger

    Joined:
    Aug 22, 2018
    Posts:
    5
    Hi!
    I've opened UMA in Unity 2018.2.4f1 and just about all objects are pink. Now, I've had this issue before with some other imports and AFAIK it's a shader issue, so previously I'd just go through all the assets and adjust the materials and shaders individually. But how do I do this for UMA?
     
  46. jiguja_unity

    jiguja_unity

    Joined:
    Jun 22, 2018
    Posts:
    4
    Hi, I wanna ask.. Can I use non UMA character to be modified inside UMA?? For example I'm using Reallusion iClone character and I want it to be modified inside UMA 2.. Would that be possible??
     
  47. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    Yeah - but you have to convert it to a UMA (slots, etc)
     
  48. Vortavasail

    Vortavasail

    Joined:
    Apr 22, 2016
    Posts:
    44
    is there anything on how to check Uma save file for right colors.

    I'm guessing this is the color info but its kind of hard to understand I would like to avoid trial an Error to find out what they are.


    "colors":[ ],
    "fColors":[
    {
    "name":"-",
    "colors":[ ]
    },
    {
    "name":"-",
    "colors":[ ]
    },
    {
    "name":"-",
    "colors":[ ]
    },
    {
    "name":"-",
    "colors":[ ]
    },
    {
    "name":"-",
    "colors":[ ]
    },
    { },
    { },
    { },
    { },
    { },
    { }
    ],
    "sharedColorCount":6,
     
  49. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,172
    The character system is now part of base UMA. Best to post questions on the main UMA thread here:

    https://forum.unity.com/threads/uma-unity-multipurpose-avatar-on-the-asset-store.219175

    Reply posted here:

    UMA - Unity Multipurpose Avatar on the Asset Store!


     
    Last edited: May 23, 2019