UE5 Tutorial MassAI Crowd in any project in less then 15 mins.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and welcome to this unreal engine  5 tutorial in this video I'll be showing   you how to get mass ai crowd working in your  project in less than 15 minutes so let's get   started open a project or create a new one then  start by going to plugins and search for mass activate all the mass plugins  but don't restart the editor yet now open the epic marketplace and search for city sample crowd and add it to your project wait for it  to finish then open the city sample crowd   folder then the blueprint folder and right  click on bp character wait for three pop-ups   click enable on all three pop-ups then restart the editor once  back in open bp character   select class settings in the details panel click  parent class and select character click reparent now we have to fix some errors click the  first error in the compiler results window   drag the mesh component into the  blueprint and hook it up to where   the skeletal mesh component is connected  delete the skeletal mesh component click   the next error and do the same  until all the errors are fixed now select all the mesh components  but the mesh and parent them to the mesh select the groom components  and parent them to face then click on viewport select mesh and  give location z axis a value of minus 87. give rotation z axis a value of minus 90. compile save and exit now let's come to the top  of the screen and click show   go down and under developer click zone  graph go back into show and click navigation open the place actors panel and type in zone  then drag the zone graph into the viewport go down to tags and click edit tags expand tags and choose a color you  like and call it pedestrian or pet now select the tag we just made and go  to lane profile create new lane profile click the plus sign on lane  profile and give it a name add two lanes change the tags change the direction to backwards on one of them we are done in here close project settings  now choose the lane profile you made duplicate zone graph and drag it out I will rotate it 180 degrees so it's easier to hold alt and drag hold alt and drag the other zone graph and connect them at the top make sure the two half diamonds turn white now go to the build menu  and click build zone graph go down into the asset browser and right click   under miscellaneous click data asset type  in mass and select mass entity config asset give it a name da underscore crowd open it up and here we want to add some  traits first one is a assorted fragment expand the assorted fragment  and add another fragment mass actor fragment come back to the normal fragments  add one more crowd visualization under high residential actor and low  res actor select bp crowd character expand perms uncheck keep low  actor and keep actor extra frame   under LODrepresentation select  high residential spawned actor   on high medium and low now expand lot primes and  log max count and change height to a value of 50. add one more fragment crowd member then add zone graph navigation expand navigation  lane filter and select your tag add a new fragment navigation obstacle add one more avoidance and add movement add steering and add smooth orientation add LODcollector and then add state tree save the data asset and close it right click and under artificial intelligence   select state tree name its  t underscore crowd open it change schema to mass behavior now click add state name it wander select it  and go to the details panel and add two tasks a ZG find wander target expand it and   expand allowed annotation tags  and add our tag to any tags in the second task add a ZG path follow   expand it and click bind at the end of  target location select wander target location add a transition expand it and under state select root compile save and exit open crowd agent data asset expand state  tree and select the state tree we made save and exit now open bp character go to components and add a mass agent in the details panel under mass entity config  parent select our data asset now add three traits agent capsule collision sync agent movement sync  agent orientation sync under agent orientation   sync direction select mass to actor  do the same for agent movement sync under agent capsule collision sync uncheck sync  transform and set sync direction to actor to mass compile save and exit open place actor panel type mass drag a mass spawner into the viewport in the details panel under mass  spawn add a entity type expand it   and under entity config select our data asset add a spawn data generator expand it and  select zone graph spawn points generator   expand it under tag filter any tags select our tag in count type in 10. now open bp character again open asset browser right click and under animation   select animation blueprint  select SK_base and click create name it ABP_crowd open it and  under window select asset browser search for asset mtn underscore and  drag MTN_N_walk_F into the blueprint   hook it up to output pose save compile and exit now select mesh and in the details panel  under animations and in class select ABP_crowd if you want to randomize your character  select bp underscore crowd character   self and in the details panel under  character options check random options compile save and exit now it's  time to test our work hit play   or simulate and there we have them random  characters walking around in our project in the next video we will be making a new  animation blueprint with state machine and blend   space I got a lot of videos lined up like adding  accessories, mass ai c++ to blueprint plug-in,   zone shape plug-in, and I am  working on a easy mass ai plug-in   I also have a video about mass ai traffic if  you are into mass ai I suggest you subscribe   to my channel and get notified when new videos  are up until next time have fun and goodbye
Info
Channel: Viperdk UE5
Views: 80,607
Rating: undefined out of 5
Keywords: Mass, AI, Ue5, UE5, Unreal, unreal, unrealengine, crowd, City sample
Id: 2LvUB3_PAhI
Channel Id: undefined
Length: 13min 32sec (812 seconds)
Published: Sun Jul 03 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.