How to do Character Customization! (4 Methods, Unity Tutorial for Beginners)

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • ✅ Modular Characters 50% OFF! cmonkey.co/synty_modularfanta...
    🌍 Get the GameDevTV Code Monkey Bundle! unitycodemonkey.com/courses.php
    👍 Learn Unity, Blender and Programming Patterns, from Beginner to Advanced!
    👇 Click on Show More
    🎮 Get my Steam Games unitycodemonkey.com/gamebundle
    🔴 RELATED VIDEOS 🔴
    How to SWAP your Character! (Change Mesh Visual, Same Animations, Controller) • How to SWAP your Chara...
    Kickstart your game with First and Third Person Controllers! (FREE Unity Starter Assets) • Kickstart your game wi...
    Learn Unity, Blender and Programming Patterns! • Learn Unity, Blender a...
    💬 Let's learn 4 methods on how to do Character Customization.
    Swap out the Material, changes colors
    Change the Mesh, changes the physical shape
    Then on top of those you have two more, add parts with MeshRenderer or SkinnedMeshRenderer.
    The SkinnedMeshRenderer method needs a very specific setup otherwise it won't work! It's all about the bones field.
    00:00 Character Customization Unity Tutorial
    00:47 Sponsor
    01:35 4 Methods to do Character Customization
    02:50 3 Characters with 3 different setups
    05:17 Change Material, Texture
    06:46 Change Mesh, Avatar, Keep Animations
    07:03 Add parts with SkinnedMeshRenderer
    08:45 Add parts with MeshRenderer
    11:40 Issues with SkinnedMeshRenderer, invisible, root bones
    16:15 Character Customization Unity Tutorial
    📝 Some Links are Affiliate links which means it costs the same to you and I get a nice commission.
    🌍 Get Code Monkey on Steam!
    👍 Interactive Tutorials, Complete Games and More!
    ✅ store.steampowered.com/app/12...
    If you have any questions post them in the comments and I'll do my best to answer them.
    🔔 Subscribe for more Unity Tutorials / @codemonkeyunity
    See you next time!
    📍 Support on Patreon / unitycodemonkey
    🎮 Grab the Game Bundle at unitycodemonkey.com/gameBundl...
    📝 Get the Code Monkey Utilities at unitycodemonkey.com/utils.php
    #unitytutorial #unity3d #gamedev
    --------------------------------------------------------------------
    Hello and Welcome!
    I'm your Code Monkey and here you will learn everything about Game Development in Unity using C#.
    I've been developing games for several years with 8 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.
    I do Unity Tutorials on just about every topic, Unity Tutorials for Beginners and Unity Tutorials for Advanced users.
    You can see my games at www.endlessloopstudios.com
    --------------------------------------------------------------------
    - Other great Unity channels:
    Unity - / unity3d
    Brackeys - / brackeys
    Dani - / @danidev
    Jabrils - / @jabrils
    BlackthornProd - / @blackthornprod
    Sykoo - / sykootv
    Jason Weimann - / @unity3dcollege
    Jonas Tyroller - / @jonastyroller
    --------------------------------------------------------------------
    - Website: unitycodemonkey.com/
    - Twitter: / unitycodemonkey
    - Steam: store.steampowered.com/develo...

Komentáře • 198

  • @CodeMonkeyUnity
    @CodeMonkeyUnity  Před 2 lety +9

    ✅ Modular Characters 50% OFF! syntystore.com/86b89
    🌍 Get the GameDevTV Code Monkey Bundle! unitycodemonkey.com/courses.php
    👍 Learn Unity, Blender and Programming Patterns, from Beginner to Advanced!
    🔴 RELATED VIDEOS 🔴
    How to SWAP your Character! (Change Mesh Visual, Same Animations, Controller) czcams.com/video/AO1vw-b8Qzw/video.html
    Kickstart your game with First and Third Person Controllers! (FREE Unity Starter Assets) czcams.com/video/jXz5b_9z0Bc/video.html
    Learn Unity, Blender and Programming Patterns! czcams.com/video/0vdmQrShbZo/video.html

    • @theshyguy3
      @theshyguy3 Před dnem

      can you send us the pack for free?

  • @Druelbozo
    @Druelbozo Před 2 lety +33

    god trying to find a character customization tutorials that don't make it seem like its the most complex thing in the entire world has been a nightmare thank you so much for making this. I would love a more in-depth look into this system especially the skinned mesh system

  • @Kaikaku
    @Kaikaku Před 2 lety +24

    A second part would be very helpful.

  • @RancorSnp
    @RancorSnp Před 2 lety +27

    As always Code Monkey delivers what I need most at the perfect time. And I especially love your tutorials since these are always so well optimized

  • @tooncis4232
    @tooncis4232 Před 2 lety +86

    I would love to see a part 2! Your video's got me into Unity game development and coding. I'm still very new to the whole thing, but your courses and explanations are very helpful for someone starting out. TY my friend, great work as always! 👍

  • @Dehakuzo
    @Dehakuzo Před 2 lety +20

    Please do a part 2! This kinda stuff gets very complicated, especially when you want to add new sub parts.
    Also, Thank you so much for the skinned mesh renderer bones part! That was bothering the hell out of me.

  • @TomMcDonaldGames
    @TomMcDonaldGames Před 2 lety +3

    The info about the SkinMeshRenderer bones was a life saver. Thanks for sharing...

  • @nipperinshorts
    @nipperinshorts Před rokem +5

    Definitely would love to see a part two.
    Something where a user had an “inventory” they could equip at will.

  • @thed100mechanic
    @thed100mechanic Před 2 lety +2

    Please make a part 2 for this !!! Your tutorials are great :)

  • @AndrewKolb773
    @AndrewKolb773 Před 2 lety +4

    Love to see a part 2 with loading (& saving?) the custom character into the game.

  • @MTPadDev
    @MTPadDev Před 2 lety

    Really helpful! Looking forward to the second part!

  • @TESkyrimizer
    @TESkyrimizer Před 2 lety +6

    You are the one of the most valuable members of the game dev community. Hands down.

  • @qasimahamad5075
    @qasimahamad5075 Před 2 lety +1

    Great, extremely powerful tutorial also I would love to see a part 2. Thank You

  • @onerimeuse
    @onerimeuse Před 2 lety

    Like others have said, would love to see that part two. This is super relevant to a project I am working/want to work on

  • @PaperMouseGames
    @PaperMouseGames Před rokem

    Awesome and helpful! I really hope you can make a part 2 to this!

  • @Zomni_Z
    @Zomni_Z Před 2 měsíci

    Exactly what I was looking for. Thank you!

  • @Sulihin
    @Sulihin Před 2 lety +2

    Definite +1 for part 2. Also, if you could do something about or have any pointers to resources for creating the models to be ready for customization, that would be awesome!

  • @pixelshenanigans1511
    @pixelshenanigans1511 Před 2 lety +1

    Great tutorial, as always! I'd love to see a part 2 of more character customization. Also hoping to use the adult face plates (free add-on to Kids) to do some facial animation - any plans to do a video on that?

  • @orewaminato
    @orewaminato Před 8 měsíci +1

    Skinned Mesh Renderer Bone trick saved my weeks, thank you!

  • @brettabraham
    @brettabraham Před 2 lety +1

    This is so useful. I would love to see the follow up video!

  • @nock_5
    @nock_5 Před 8 měsíci

    Great video as always. I think these more theoretical/workflow tips are helpful for people of all skill levels. Understanding why just as important as how when making game mechanics!

  • @dreamisover9813
    @dreamisover9813 Před rokem

    That's really neat! I have worked with a script for the bone remapping before, was wondering if this video mentions it, and indeed it does. Very important to know, great video!
    Some other scripts I've seen sometimes also consider that the order of the bones is not always the same. In that case, the transforms are matched per name instead of per index

  • @mattw_dev
    @mattw_dev Před 2 lety

    Exactly what I’m looking for rn.
    Thank you!

  • @sagnikroy5001
    @sagnikroy5001 Před 2 lety +6

    Awesome tutorial

  • @Datseri
    @Datseri Před 2 lety +2

    I would love to see a part two video ☺️

  • @user-mq7ru2ug7s
    @user-mq7ru2ug7s Před 2 měsíci

    Thanks bro, great job!

  • @Sail_VR
    @Sail_VR Před 2 lety

    Extremely helpful thank you!!!

  • @lime_68
    @lime_68 Před 2 lety +2

    I like the fact that after you received award you are making videos more often! Keep it up! How about a little parcour,ledge climbing tutorial next time? It's really under-covered topic in game dev in my opinion. Would love to see part 2 as well!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +1

      Yup that's definitely a topic I have on my list. Right now I'm super busy trying to finish my next complete course but after that I want to take 2 months to do nothing but tutorials, got tons of awesome ideas!

    • @lime_68
      @lime_68 Před 2 lety

      @@CodeMonkeyUnity I believe in you

  • @jinno1236
    @jinno1236 Před 2 lety +1

    thanks a ton for this video, I've always been curious about how games do char customization.. and thanks to this video, I can now create a char customization menu for my game..and please if possible make a video in the future dealing with blendshapes, regarding eyes, nose shape, etc in regards to char customization....thanks!!..

  • @benjaminswee-shaders
    @benjaminswee-shaders Před 2 lety

    Nice, great tips for beginners

  • @GreenKaizer
    @GreenKaizer Před 2 lety +1

    yes would love to see a breakdown of how to customize

  • @jgbuatu
    @jgbuatu Před rokem

    This was useful, as was the other video you made on swapping avatars. I'm not quite at this part yet in my learning (still basically working with primitives and hammering out underlying systems), but if you ever do another video on this topic, maybe cover additional customization options, like how to change the size of the skeleton. I played around for about ten minutes with the Polygon starter pack and realized that this is something that would be more difficult than I thought (especially if you wanted the player to be able to adjust character dimensions during character creation). For example, it's easy enough to change the length of the legs, but it didn't change the size of the collision box, so you also have to manually adjust the height of character there as well as the center. Likewise, you have to adjust the Y value in the Root, and I'm pretty sure you need to change the bounding box on the skinned mesh renderer, as well (though I admit, I'm less sure what this last one does). Otherwise, the character just sinks into the terrain. I worked it out, but it's not exactly intuitive.

  • @ultramelon3960
    @ultramelon3960 Před rokem

    I’d be very interested in the second part of this you mention with the recursive function for removing the extra game objects! I will likely be able to figure it out though!

  • @shaderx666
    @shaderx666 Před 2 lety

    Awesome video, if you do part two it would be great to see how to use blendshapes to customize facial features.

  • @MagicPigGames
    @MagicPigGames Před rokem +5

    You should check out the Infinity PBR characters. Our customization includes handling blend shapes, and custom editors making it super simple (one line of code) to switch outfits at runtime. Works with prefabs & objects already on the scene, works with attaching to bones and the skinned mesh, rigging it properly and everything. :)

    • @milhouse8166
      @milhouse8166 Před 16 dny

      Except all the blendshapes across the character and equipment are all named differently making it a nightmare to sync them all. Definitely not one line of code.

  • @a3dadventure79
    @a3dadventure79 Před 5 měsíci

    thanks for taking the trouble to do this + figuring out the annoyingness of the skinned mesh renderer!

  • @psadicodes
    @psadicodes Před 2 lety +1

    That's sir. This help me alot

  • @1JMGames
    @1JMGames Před rokem

    Heyy! Thank you for the amazing video! keep up the hard work! I was wondering if you can make a part 2 like a tutorial on how to set ui/character Customization/ saving/ and the playing with the character you just made? thank you!

  • @hawkgamedev
    @hawkgamedev Před 2 lety

    Man you are a LEGEND.

  • @devforfun5618
    @devforfun5618 Před 2 lety

    thank you i searched this so many times and never found anything that i could use, what i need is away to replace limbs, i had the idea of having all the options and disabling the ones i wasn't using, but couldn't confirm if people used that technique

  • @shahzadansari849
    @shahzadansari849 Před 2 lety

    Thanks For this Amazing Videos ! Like To See The Follow Up Video

  • @smitesoft6824
    @smitesoft6824 Před 2 lety

    thank you for the video, when it comes to the skinned mesh renderer, cant you just replace the mesh?

  • @ksl-988
    @ksl-988 Před 5 měsíci

    You are a lifesaver.

  • @Dylan-pr7wp
    @Dylan-pr7wp Před 5 dny

    OMG Thank you so much! The invisible skinned mesh renderer issue was driving me insane. I can finally stop crying and build something lol

  • @CodyHoskin
    @CodyHoskin Před 2 lety

    Amazing!

  • @knoxxroxx247
    @knoxxroxx247 Před 4 měsíci

    Hey, thanks for the nice video.
    Got me some good understandings. I figured out a problem for my upper body part if its a meshrendered piece. In unity it wont follow the three spine bones. Is there any chance to let it follow more than one bone?
    Thanks. Keep the good work up!

  • @bigblue489
    @bigblue489 Před 2 lety +8

    would love to see the follow up video!

  • @KetoneCharger
    @KetoneCharger Před 2 lety

    awesome!

  • @erievhs
    @erievhs Před 2 lety

    Your the best person!

  • @petersaup
    @petersaup Před 2 lety +2

    Part 2 please!🙏

  • @CosplayZine
    @CosplayZine Před 2 lety

    Thanks for making this video. I suspected that I may need to destroy the parts on a character after they leave the customization screen.

  • @96698041
    @96698041 Před 2 lety +1

    Please make the part two!

  • @LDK47
    @LDK47 Před 5 měsíci

    This is awesome. What if you want to let the user change things like arm length, head width, eyebrow height?

  • @lucasbonde3655
    @lucasbonde3655 Před 11 měsíci

    Hello Code Monkey - I really love theese videos. I would love to see the second video of character customization, but I don't know if there is one (was not able to find it on your page) Could you add a link if you have created the video

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 11 měsíci

      Yeah I haven't made it yet, it's still on my list of many many topics I'd love to cover!

  • @kazekageno7711
    @kazekageno7711 Před 2 lety +8

    If you do a Part 2 I would really like to see how this can be applied to customizing the character during runtime. I am making an arpg of sorts but want to make it so players can equip different gear they pick up. So far I guessed I should use the meshrenderer method to add the pieces as children of the referenced part then and destroy any pieces that are in its way putting them back into their inventory. Am I on the right track?

    • @rawrrrz
      @rawrrrz Před 2 lety +1

      It sounds like you understand the general idea to me. I have an arpg type project where I have an Equip(Item) function. So when loading the character, it looks at the saved list of currently equipped items, and calls the Equip function on all of them. Then yep, do the opposite when you UnEquip, while updating and saving the list of which items are equipped or in your inventory. I also have a few other rules in there, like a full body armor item will remove the currently equipped chest/legs or the 'nude' models get equipped when there is no item equipped. Just however you wanna do it.
      Personally, I don't actually Destroy() all of my other pieces either, I am just enabling\disabling mine. If there was a noticeable hit to my performance then I might've investigated more and reached the point that I found it necessary, but I didn't do that. But I also haven't published this project and it's only low poly models that I'm dealing with.. Doing it that way is only a small extra step though- you would just need to maintain some reference to all of the parts so that you could Instantiate them again when needed. Maybe even grab them from an Object Pool instead of repeatedly calls to Instantiate, since the reason for doing it this way I assume would be for performance. But I'm honestly unsure which of those ways would be more performant on a super high quality and complex project where it could actually make a difference, so I'd say try it for yourself. xD

    • @kazekageno7711
      @kazekageno7711 Před 2 lety +1

      @@rawrrrz Low-poly is cool though. I plan on sticking to low-poly for both aesthetics and ease of performance (and modeling...) since I am soloing it. Hope yours turns out awesome. Posted any content yet?

    • @rawrrrz
      @rawrrrz Před 2 lety +1

      ​@@kazekageno7711 Same. I'm horrible at modeling, but I can somewhat manage to make things myself in low poly, but I'm def not an artist. Haha. I've just been learning on my own for several years now.. But nope, haven't completely finished a single project. In my arpg project you can run around, use several special attacks and different types of spells, there's RNG looting and crafting.. But I'm not much of a writer or anything either. So, what's my world called, what's the story, who are the NPCs, how to design city layouts, etc.. all that stuff is missing.. Creative decisions break me, basically. So I've only managed to make several functional prototype projects, and no complete games. I'll probably eventually have to find a friend willing to make the creative decisions for me, rather than publishing entirely solo. Thanks though, and good luck to you as well! I'd say feel free to message me with any programming\unity questions, but I don't guess that's a feature of CZcams.. lol

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +3

      Yup exactly, you would have some kind of inventory equip logic and each item would have its own linked 3D mesh (possibly with scriptable objects) unitycodemonkey.com/video.php?v=7jxS8HIny3Q
      Then you would destroy the part in that slot that is currently placed, if any, and instantiate the part related to that item
      I've been wanting to make more Inventory related tutorial videos, my last inventory video was quite a long time ago unitycodemonkey.com/video.php?v=isAmoM3RPEI
      I'm working hard on completing my next course and then I'll be doing tons of tutorials that I've wanted to do for a long time.

    • @kazekageno7711
      @kazekageno7711 Před 2 lety

      @@CodeMonkeyUnity Alright, I look forward to them. I bought your Unity course for Bolt and like 50 tips on Udemy and look forward to what else you can cook up :)

  • @EmiliaKaida
    @EmiliaKaida Před 2 lety

    Thanks for the great content.
    Do you have a playlist containing of your videos related to this topic (animation, 3D model) ?
    That would be awesome!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety

      Hmm not really, I have a playlist with videos related to a third person shooter, then I also did some Animation Rigging unitycodemonkey.com/video.php?v=UL2EbxqwozM
      How to get free animations unitycodemonkey.com/video.php?v=c4jtyDA7vcs
      And there's some referenced videos in the description

    • @EmiliaKaida
      @EmiliaKaida Před 2 lety

      @@CodeMonkeyUnity Yeah, thanks.
      But what I meant is just simply create here in CZcams a simple playlist, grouping them all related videos (for example this and other videos you listed in the description and whatnots). Very simple idea, would be helpful for people I think. Would be best if sorted oldest to newest etc.
      Just for an example: czcams.com/play/PLllNmP7eq6TSkwDN8OO0E8S6CWybSE_xC.html
      -> Super helpful, anyone interested just need to save this single playlist.

  • @DRYstudios1994
    @DRYstudios1994 Před 2 lety +1

    I'd like to see a follow-up video to this one.

  • @zeemilios9327
    @zeemilios9327 Před 2 lety +1

    This video could really make use of chapters and time marks where a person could look up which method works best for them

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +1

      You're right, I'll add some chapters, thanks!

    • @zeemilios9327
      @zeemilios9327 Před 2 lety

      @@CodeMonkeyUnity Thank you and thank you for listening to feedback!

  • @Dreyko5893
    @Dreyko5893 Před 2 lety +1

    Thanks! This tutorial is very helpful, I was looking for something like this since ever.
    Did you know how a "modified mesh" would work? (Character customization with sliders, changing body size, etc)

    • @Snikur
      @Snikur Před 2 lety +1

      Look at blend shapes or shape keys.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +3

      Those would be Blend Shapes which is a topic I'm not too familiar with so it's something I'd love to research

    • @StriderWolf
      @StriderWolf Před 2 lety +1

      @@CodeMonkeyUnity would love to see one about blend shapes and character customization with them.

  • @firstnamelastname4959

    Please make a part 2! Are the project files for this available somewhere? :)

  • @NahFam13
    @NahFam13 Před 2 lety

    I'd love to see the follow up, but also a video on Unity Engine UI elements, for example you have your transform selector on the left on your scene window instead of under the toolbar, that helps out a lot for making quick changes and seeing what selection you made, I use Q,W,E,R,T to switch between scale and rotations but I have it under my toolbar.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +1

      I've upgraded to 2021 LTS which has the toolbar as a separate object, you can put it on the side or on top just like it was in 2020 LTS
      I mostly use the keys as well so I didn't even notice the new toolbar.

    • @NahFam13
      @NahFam13 Před 2 lety

      @@CodeMonkeyUnity "tell me you don't use anything above 2020 without telling me you" haha
      Thanks for the info!

  • @CyberStudios
    @CyberStudios Před 2 lety

    I love the post processing of your lowpoly worlds. Do you perhaps have a tutorial or guide/resource for SRP?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +2

      Hmm I haven't made a video on that specific topic. I normally add a bit of Bloom, Saturation, Contrast, Tonemapping: Neutral

    • @CyberStudios
      @CyberStudios Před 2 lety

      @@CodeMonkeyUnity thank you sooo much!

  • @JimboS1ice999
    @JimboS1ice999 Před rokem

    is it possible to say...use the synty character modular asset, and swap in a unique character base model for all the same cloth meshes to still asign too in the same way?

  • @Injabsful
    @Injabsful Před 2 lety

    can u make a universal character creator where u just drag n drop any syntys item or customa made item i it and it sets them up on a character ?

  • @keithcollier4860
    @keithcollier4860 Před 2 lety

    Great Timing ! Any thoughts on how to slice up a skinned mesh? For example, swapping the heads of two similar models that have a single skinned mesh.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +1

      I don't think there's any way to do that inside Unity since the objects are entire meshes. For that you'd have to load the model into blender and cut it up but I'm not familiar with the process for making Skinned meshes in blender so not exactly sure how.

    • @keithcollier4860
      @keithcollier4860 Před 2 lety

      @@CodeMonkeyUnity I was afraid it might be something like that. Though with what you've covered, there are plenty of other customization options that are available. Thanks for the reply, and thanks for your awesome content!

    • @shadowflar3
      @shadowflar3 Před 2 lety

      @@CodeMonkeyUnity The mesh data can be programmatically edited even in runtime, and this is usually has to be done with big GaaS mobile games using mtx cosmetics. It's not some much about cutting up anything, just all the individual mesh pieces are combined into 1 mesh to save drawcalls. Combining mesh data is not too complicated but probably well outside the beginner scope you cover.

  • @shahzadansari849
    @shahzadansari849 Před 2 lety

    Hello code Monkey , Have Seen the ui of some game that has icon follow the 3d object when the object is visible on screen , the icon point that object but when screen is not seeing that object ( say the screen is rotated) than the icon stays at the corner of the screen , which still somehow points the position of the objects. can you make a tutorial about that.

  • @davestr2046
    @davestr2046 Před rokem

    Love you, Monkey. You are my One Stop Shop for all things that I find problematical. However, I have a problem with the Aurora FPS Engine. I have it working just fine but the trouble I have is with the placement of 3rd Party Weapons. I am not getting it right. At all. I will even send you a copy for you to get your head around and have a go at it. Keep up the good work.
    I have followed the tuts and documentation but so far, its a fail! 😞

  • @mrzaphkielYT
    @mrzaphkielYT Před 3 měsíci

    I made a character randomization using the skinned mesh renderer but at 8:30 is there any reason why you need to delete the hidden gameobjects? They don't cost performance or when using something as "Find()". I also tried to apply the armors from battleroyale pack to another synty pack and i went crazy why the grapicsh missing and ended scraping the idea. 13:40 might solve my problem, i will try when i have time, thanks for that.

  • @AngelCnderDreamer
    @AngelCnderDreamer Před rokem

    Hey Code monkey thank you so much for this! I am so happy there is an updated version as I recall seeing old versions, so this is def a huge need for me. :3 Btw could you make one on a creature that breeds and offsprings get traits? for example red bird and yellow bird, their offspring gets their color or a mix of design? ^ ^" I am making a game that has this kind of mechanic and realized I don't know how on doing this or getting an idea really how it's done..besides something like this, but I would be grateful and highly appreciate it if you make a tutorial on this. ♥ Really love your content btw, it's super helpful! ;3;

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před rokem +1

      For mixing the visual textures it's pretty simple, you can draw some textures with code
      unitycodemonkey.com/video.php?v=ZRRc7J-OwGo
      unitycodemonkey.com/video.php?v=Xss4__kgYiY
      However for mixing 2 meshes, that is a lot more complex, you would probably need to manually define some kind of attach points or something

    • @AngelCnderDreamer
      @AngelCnderDreamer Před rokem

      @@CodeMonkeyUnity I figured it be quite complex. Also thank you for the links. ;3; hopefully I figure it out.

  • @meove1213
    @meove1213 Před měsícem

    look much simpler than my method
    mine is setup the Empty object as spawn position. all outfit are place in Project folder as Prefab. Everytime player press change cloth, the current outfit will be destroy, and the new outfit spawn to the spawn position (let say hat) with matched rotation as player
    it has much work to do but work perfectly. In term of performance, do you think premade outfit in Hierarchy is slower the performance than destroy current object and taking new from Prefab? thanks you

  • @jonnjordan4420
    @jonnjordan4420 Před rokem

    What if I want to add parts with MeshRenderer but the characters have differents sizes? (Height, weight, etc..)

  • @TaliyahP
    @TaliyahP Před 10 měsíci

    Idk if it the result of a patch. But I found out you can just switch the mesh on the SkinnedMeshRenderer just fine.

  • @DeathxStrike18
    @DeathxStrike18 Před 2 lety +2

    You forgot one method which is making blendshapes for the body, a game that uses a character customization for face shape and such will make the blendshapes a public slider to allow customizations this is also how visemes are created for facial animations.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety

      Yup Blend Shapes is another method for further customizing the shape of the mesh, it's actually something I haven't used myself so I'd love to research it in the future

    • @DeathxStrike18
      @DeathxStrike18 Před 2 lety

      @@CodeMonkeyUnity I have some experience with it, you can even use multiple armor or weapons in the shape key where you just collapse the verities into the body but the poly count ends up being deceptively large, so usually best to keep them to body shapes, and having items deactivated or reactivated to the bones.

  • @SpencerCJ
    @SpencerCJ Před 2 lety

    What would be the best way to do this kind of thing within WebGL using asset bundles? I don't think I could do the version where I have everything loaded in on the asset all at once since they would all need to be downloaded. Would the skin mesh renderer version be to most efficient?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +1

      The only thing you need is to load them dynamically, so you could use both methods, just not starting off with the character with all the parts.
      Dynamically loading either SkinnedMeshRenderers or regular MeshRenderers would work

  • @aster5031
    @aster5031 Před 2 lety +1

    10/10

  • @Dark-jn4hr
    @Dark-jn4hr Před 2 lety +1

    Can you suggest me how can i understand the logic behind code

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +2

      First you have to identify exactly what don't you understand.
      Game Objects? Transforms? Learn the basics of Unity unitycodemonkey.com/video.php?v=E6A4WvsDeLE
      C# Functions? Variables? Learn the C# Basics unitycodemonkey.com/video.php?v=IFayQioG71A

  • @oncegusponatime
    @oncegusponatime Před rokem

    Could you do a tutorial on how to save custom characters?
    I made a UI canvas for enabling and disabling all the parts of my character but then I can't instantiate them in another scene while in play mode

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před rokem

      You would need to define some data structure to reference the parts. Give them some index/enum/name, then just hold that in a class/struct. Maybe make a List in a prefab and drag all the possible parts onto that list, then store the int index

    • @oncegusponatime
      @oncegusponatime Před rokem

      @@CodeMonkeyUnity Thank you for the quick reply!
      Unfortunately I am very new to Unity and have no idea what any of that means... Looks like I have some googling to do today

  • @Mynerva
    @Mynerva Před rokem

    Does Unity have any kind of simple way to replace a base armature? Say you have a base character and you attach outfits, props, scripts etc to different bones throughout the armature. But then you decide to update the armature. is there an easy way to swap base armature with all the attached parts intact. or do you just have to re attach everything to a new model?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před rokem

      Every mesh can have a different skeleton so there's no standard way to do that. Technically maybe you could query the Avatar object to get the bone you want regardless of the skeleton of that mesh but no idea if that's doable. There doesn't seem to be a function to explore the Avatar docs.unity3d.com/ScriptReference/Avatar.html

  • @kloa4219
    @kloa4219 Před 2 lety

    will you do character customization through shape keys?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety

      You mean Blend Shapes? That's a different topic and something I plan to cover in another video, I've never used them myself so need to research.

  • @charlocabural9973
    @charlocabural9973 Před rokem

    How About in Vroid
    Currently researching and making my game using vriod models
    the problem is the hair it has its own skinnedmesh data and bone set up
    If I export only the hair and align it to the model it might work but the physic of the hair is not working

  • @Dertro
    @Dertro Před rokem

    I've been messing around with the same asset pack, and while trying to implement an entirely different method I'm running into an issue.
    I'm changing the skinned mesh renderer to different one of the same "kind" i.e. from Chr_Hips_Male_00 to Chr_Hips_Male_04. The end goal being I assign a skinned mesh to a scriptable object and customize the avatar from the object.
    The weird thing is that sometimes this works, and other times the mesh is distorted ( like in the Hips 00 to Hips 04 example I gave). Another weird thing is that for example while swapping the skinned mesh on Chr_Hips_Male_00 to Chr_Hips_Male_00 is distorted, Chr_Hips_Female_00 to Chr_Hips_Male_04 is not! Anyone have an idea on what is going on? I suspected it had to do with the bones, but when I export the fbx to blender I'm not seeing any major differences between the skinned meshes I can swap to easily and the ones that come out distorted.
    EDIT: Figured out how to get it to work. It's because the bones in the fbx are transformed by default. Opened it up in blender and undid the transformations and now swapping skinned meshes works like a charm. No clue why Synty did the asset the way they did, it makes it unnecessarily difficult to work with. Unfortunately fixing that issue means you have to remake the prefab, assigning the transforms to each skinned mesh renderer.

  • @jimjohnson1810
    @jimjohnson1810 Před 2 lety +1

    Random question, is there any place where I can learn Tools Programming for Unity or Unreal? There’s all these courses I’ve found for game development but nothing at all relating to tools development. I’m a complete beginner to this stuff so I apologize for my stupidity in advance.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety

      I covered Editor tools in 2 videos czcams.com/video/bMuTsAma4tk/video.html
      czcams.com/video/rPBISPzmhog/video.html
      And I also covered the Odin inspector which is an excellent asset for helping you make tools czcams.com/video/jz_vk8NQFZ4/video.html
      And then beyond that, in the latest Unity version the UI Toolkit is now out of preview and that is meant to be a new easier way to build tools however I haven't looked into it yet myself.

  • @talalali773
    @talalali773 Před 2 lety

    can you make a video on 2.5D games like Paper Mario?

  • @FormidableGamer
    @FormidableGamer Před 11 měsíci

    How would you go about saving the character customization in between scenes?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 11 měsíci +1

      You can save it like you save any other data, but instead of saving to a file you just store it in a static field which will persist through scene changes unitycodemonkey.com/video.php?v=6uMFEM-napE

    • @FormidableGamer
      @FormidableGamer Před 11 měsíci

      @@CodeMonkeyUnity thank you!!!

  • @brandonesqueda4469
    @brandonesqueda4469 Před 2 lety

    Would you consider making a cover system tutorial for your Third person shooter controller?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +1

      Sticking to cover? That could be an interesting topic, I'd have to find a good animation pack for that

    • @brandonesqueda4469
      @brandonesqueda4469 Před 2 lety

      @@CodeMonkeyUnity I think my reply got deleted for posting a link. I have Cover Rifle Animset Pro by Kubold

  • @ArnCiS96
    @ArnCiS96 Před 2 lety +1

    What about doing it in DOTS?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +1

      There's no reason to do this with DOTS, especially since there's no DOTS Animation.
      DOTS isn't a cure-all, it's a tool for specific use cases.

  • @YulRun
    @YulRun Před 2 lety

    I'm curious how a Mesh Renderer approach looks animated. I know games like Lineage 2 or World of Warcraft, sliced up their models and swap out those parts, but you'll never see a seam. (Of course this depends where your seems are) is this possible with a Mesh Renderer approach?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 2 lety +1

      The main difference is it wont deform along with the bones, so yes if you use that method on separate body parts like arms or chest then it will have gaps, although you can make the mesh bigger to hide them.
      So I would recommend using SkinnedMeshRenderers on body parts and MeshRenderers for adding things on top of it (helmet, backpack)

    • @YulRun
      @YulRun Před 2 lety

      @@CodeMonkeyUnity if you do an in-depth video on hot swapping skinned meshed renderers through code, I’ll be sure to check it out! Sounds like definitely a mix would be needed for a proper RPG with equipable gear.

  • @jtlewis81
    @jtlewis81 Před 2 lety

    What is the shortcut to enable and disable a game object without mousing over and clicking the checkbox in the inspector? At least that's what it looks like you were doing about halfway through the video.

  • @EverScrolls
    @EverScrolls Před rokem

    I can't get the code for changing Skinned Mesh to work. I got it to work once and only once with it running as a start function, but when you try to do anything advanced like a custom function, it refuses to render it. Why the hell did Unity make this so complex?!

  • @Brainyplanet
    @Brainyplanet Před 8 měsíci

    Is part 2 available?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 8 měsíci

      I'm actually working on it right now, will be out next week

  • @ZAYMANGAMESTUDIO
    @ZAYMANGAMESTUDIO Před rokem

    Hello. How can I make a melee combat system?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před rokem

      I made one here unitycodemonkey.com/video.php?v=AXkaqW3E9OI

  • @nocultist7050
    @nocultist7050 Před 11 měsíci

    I just put a placeholder for all my skinnedmesh slots and then replace the mesh and material in renderer preserving the bones and roots etc.

    • @JakeCollinge
      @JakeCollinge Před 2 měsíci

      Actually....I just tried this and it totally worked fine! Set a new Mesh + set Material. *Issue, when I disabled/destroyed my originalSkinnedMesh, animation would stop and I'd get a static object.

  • @lyrion0815
    @lyrion0815 Před rokem

    SkinnedMeshRenderer + .bones array drove me crazy until I found your video. Thanks for that.

  • @ADVENTURESOFTHEBIGJUICY
    @ADVENTURESOFTHEBIGJUICY Před 8 měsíci

    love the codemonkey videos usually but was this really that helpful to anyone that isn't just going to use sytney's pre-built asset pack? I'm still left scratching my head as to what to do if I have a bunch of prefabs of different characters and I want to 1. set up a character selection system between them 2. set up the same equipment upgrades on those different characters like a piece of armour or whatever and 3. how to plug all of this into a game...

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před 8 měsíci +1

      The method is going to depend on how the assets are set up, not based on who made them
      It sounds like you want to use one of the last two methods, depending on if your body part prefabs are skinnedmeshrenderers or not

    • @ADVENTURESOFTHEBIGJUICY
      @ADVENTURESOFTHEBIGJUICY Před 8 měsíci

      @@CodeMonkeyUnity Thank you mr code monkey for replying and I'm sorry for being a bit disparaging I really do love all your stuff. I think I'm just a bit frustrated because I haven't found much guidance in what to do when the assets themselves aren't already pre-set up with stuff. In anycase I shall re-watch a few times and focus on the last two parts thank you. xxxx

  • @user-iy2bz6fw5c
    @user-iy2bz6fw5c Před 2 lety

    How to costumizate a character using photos and JSON file with keypoints (positions of eyes, nose, shoulder etc.)? P.S. My friennd adviced me to use UV map. But I don't know how to use it...

  • @user-ox6eq9dz8o
    @user-ox6eq9dz8o Před 2 lety

    I love❤ you.

  • @thg1nrediar
    @thg1nrediar Před 2 lety

    Physgun tutorial

  • @mayettaxtriger436
    @mayettaxtriger436 Před rokem

    Do you have any, or know any, good tutorials for 2D games made in unity learning from scratch? I want to make a 2D hand drawn mystery/horror game but I have never even opened unity :( all the tutorials I have found are for advanced, no beginners. Or for 3D games, which I'm not interested in right now.
    Thank you :)

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před rokem

      Here is a nice guide for how to start learning unitycodemonkey.com/question.php?q=how-to-learn-unity
      Don't focus on the specific game you want to make just yet, learn the general basics first to get a good foundation.

    • @mayettaxtriger436
      @mayettaxtriger436 Před rokem

      @@CodeMonkeyUnity 😭😭oh my god thank you so much dude,, that's so helpful!!! thank you!
      Yea lol I admit I have no ideas for games atm, outside of what I think I want to make. Time to learn some basics!
      Stupid question, but does unity work on windows 10? is it free/do I have to pay monthly? I have a windows 10 but unsure if the latest version of unity will run^^"
      Thanks for all your amazing videos! they're so engaging and helpful!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před rokem

      ​@@mayettaxtriger436 Yup Unity works on Win10, it's what I'm using. Yup the Unity personal edition is free and has all the features as any Unity version. You only need to upgrade to a paid Unity version after you make $100k

  • @ludwig9601
    @ludwig9601 Před 2 lety

    I tried the skinnedmeshrender method. But it's a mesh. If bones aren't in the correct order (differs between meshes) or root bone differs, the mesh gets meshed up.
    I guess the trick is to take the character prefab with all the meshes. Save off the configuration of each mesh, then reuse those same configuration later.
    Would be interesting to see a follow-up on this tutorial. :)

    • @ludwig9601
      @ludwig9601 Před 2 lety

      I tried iterating through the synty character prefab and created SkinnedMeshRendererData class instances to hold all the data. So far so good. But then I don't know what to do with it. I created an editor script that creates scriptableobjects, but SOs can't hold scene references. How can we save off all this data and fetch it when needed? Or is the only solution to have a scene object like an "item manager" holding these hundreds, perhaps thousands of SkinnedMeshRendererData instances? And would we need one for each character we want to be customizable?

    • @shadowflar3
      @shadowflar3 Před 2 lety

      @@ludwig9601 You can load mesh data through Resources if you want to avoid long array of references. And you don't need per-character lists as long as your bone order is consistent in your assets.

  • @DevGods
    @DevGods Před rokem

    Damn this is a bummer. I’m trying to find feature parity with some things I have set up in my unreal project. In there we can have multiple skeletal meshes parented to a master. The master leads the animation and all of the skeletal meshes can have their meshes swapped out. I can probably solve this since it’s a component that’s holds a mesh. That way I can just swap out the entire mesh in the renderer.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Před rokem +1

      You can swap a mesh, I covered some methods to do that here unitycodemonkey.com/video.php?v=AO1vw-b8Qzw