Awesome House Building System! (Castle, Hut, Mansion, City, Village)

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии • 212

  • @CodeMonkeyUnity
    @CodeMonkeyUnity  3 года назад +17

    🌍 Get the Game Courses Bundle 3x1! game.courses/code-monkey-bundle/ (Includes Steam Keys for my games as a FREE bonus!)
    📝 POLYGON Fantasy Pack assetstore.unity.com/packages/3d/environments/fantasy/polygon-fantasy-kingdom-low-poly-3d-art-by-synty-164532?aid=1101l96nj&pubref=housebuildsystem
    ✅ Get the Project files and Utilities at unitycodemonkey.com/video.php?v=Cdcn6uK9gPo

    • @serj_1264
      @serj_1264 3 года назад

      Hi Code Monkey,
      Me and a friend of mine are about to release a game in Steam.
      I just wanted to say thank you for this channel.
      If there's a way to DM, I just wanted you to know there's a free key waiting for you.
      You and many others like Brackeys, Gabriel, Jason or Matt are part of this.
      I dont want this to be an advertisement without your consent so no link by now.

    • @mrbutwhyme9941
      @mrbutwhyme9941 3 года назад

      I''m making android game and I dont know how to make start menu. I only need start button which when I click game starts. Make tutorial please.

    • @mrbutwhyme9941
      @mrbutwhyme9941 3 года назад

      It would be great if there is no scene changing or panels. Just tap to start button which whennyou click game starts.

    • @ttrudeau83
      @ttrudeau83 Год назад

      Hi! I downloaded the project files but it looks like there is a ton of stuff there from different videos. Is there a project with just this system to check out? Is there a scene file with it all to see how it's working together?

    • @chozhan1645
      @chozhan1645 4 месяца назад

      @@ttrudeau83 did you get the separate project file?

  • @parthajeetsarmah4529
    @parthajeetsarmah4529 3 года назад +2

    I got a code monkey ad in a code monkey video. Amazing.

  • @johnnyxp64
    @johnnyxp64 3 года назад +10

    hats off to Code Monkey for promoting or mentioning other fellow youtuber that he used ideas or they had done similar things like him. that's a good sportsman right there.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +3

      Yup I learn things just like everyone else, by watching videos, reading documentation and tons and tons of experimentation!

    • @supertenchoo4271
      @supertenchoo4271 3 года назад

      Jason Weismann course are awesome you will learn many advance stuff which you wont find from many course actually he use to work at AAA game Industry

  • @officialfadi
    @officialfadi Год назад +9

    Can you please make a course or a video series that goes into everything you are doing step by step including animations? And details for a beginner like myself?

  • @a.technology1446
    @a.technology1446 3 года назад +3

    Ur existing on game Dev make us excited to work more, thank you a lot 🙏

  • @ApurboKhan.
    @ApurboKhan. 3 года назад +10

    Requested this video couple of weeks ago and here it is! Thank you code monkey for the video🥰

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +6

      It took a while to make so I hope people find the video helpful!

    • @ApurboKhan.
      @ApurboKhan. 3 года назад +1

      @@CodeMonkeyUnity I'm sure they will.

  • @JediMediator
    @JediMediator 3 года назад +1

    Two of my favorite Unity people in one video. Love it!

  • @alir8zana635
    @alir8zana635 3 года назад +10

    This video is absolutely great
    I have looked everywhere for a building system tutorial
    but this is by far the best I have come to
    your teaching style is absolutely fantastic

  • @SteveJstone
    @SteveJstone 3 года назад +3

    That's looking really nice and slick. It's truly inspiring seeing how quickly you manage to put things together.

  • @digiross7199
    @digiross7199 3 года назад +12

    You make programming look so easy :)

    • @ollllj
      @ollllj 3 года назад +3

      actually not, his videos are summaries at 20x speed, and his live coding sessions show, that he is fast for 5 years of practice and typing with 10 fingers.
      navmesh-baking, or implementing a path-finder without navmesh-reqirement, actually takes a lot of time.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +11

      It's all about experience! After writing code for 20 years you start to remember that you already solved similar problems previously so the solution comes more easily!

  • @3rdone968
    @3rdone968 3 года назад +10

    Dear Code Monkey I really appreciate what you do for us, I am learnt alot and still learning from your videos, You really dont know how thankful I am to have you.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +3

      Thanks! I'm glad the videos helped you!

    • @3rdone968
      @3rdone968 3 года назад

      @@CodeMonkeyUnity thank you so much again

  • @xavmanisdabestest
    @xavmanisdabestest 3 года назад +3

    Thank you for the constant content. Always inspires me to perfect my craft

  • @HackFight
    @HackFight 3 года назад +1

    Yes I'm loking forward for the next video!
    It's exactly what I need!

  • @toprogress
    @toprogress Год назад +1

    This grid system is incredible. Making good clean code definitely feels like having coding super-powers to me

  • @bsdrago
    @bsdrago 3 года назад +1

    Waiting for the course ;)

  • @Spider-Too-Too
    @Spider-Too-Too 3 года назад +8

    i would love to see how to build the "cutaway wall view" system like that in sim 3 games.

  • @santerikkkkk
    @santerikkkkk 3 года назад +1

    Exactly what i need for my game! Thank you!

  • @baguingi5589
    @baguingi5589 2 года назад +1

    Thanks for the vid! I was looking for an approach to make the grid system work along the Y axis, at first I thought of making a Grid class with all 3 vector coordinates but this looks simpler and less of a mess 😅

  • @akeemovic
    @akeemovic 3 года назад

    CodeMonkey is the GOAT! 🐐 🙌
    I like your voice, though, you sound very funny. 😂

  • @BlazeMakesGames
    @BlazeMakesGames 3 года назад +25

    I haven't watched this yet but I already wanna make a game about building an airship lol

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +6

      That would be a great use case! The "house" definitely doesn't have to be an object on solid ground.

  • @storycrafter42
    @storycrafter42 3 года назад +1

    Awesome work! I really enjoy your work. I have learned a lot from you, and the tutorials are very easy to follow. THANK YOU!

  • @spikechu
    @spikechu Месяц назад

    Great Video, have you done any videos on adding the ability to drag select multiple tiles to build the floor and walls all at once instead of one by one?

  • @stvnmiracle
    @stvnmiracle 3 года назад +1

    This is awesome and super useful, thank you.

  • @bns663
    @bns663 3 года назад

    Thanks for the great tutorial! Can't believe that is FREE.

  • @DarioDAversa
    @DarioDAversa 3 года назад +2

    Love this -- I've been building something similar for a game I'm making, just for fun... I basically have a World Manager that splits everything into chunks, and these chunks are essentially based off your Grid System. I then load these chunks following the POV so I can have very large worlds at decent run speeds -- I had to do this because I use a grid layer for the terrain tiles, so on a 256x256 grid it quickly gets heavy on the GPU. It's somewhat inspired & mixed with the whole "Minecraft voxel chunks" concept but it really isn't the same thing since it's not really cubic. For multiple stacked objects, I just converted the List index to Vector3Int instead of Vector2Int, and keep track of the Y-layer with a hard limit of 8 layers. The only real change I have versus this is that I've added an extra grid layer for triggers, and created an RTS/FPS camera switch, so when a character enters a door, I switch to a first-person view inside the building. It's not quite the way I want it to be yet but that's the idea. 😅 In any case, thank you for your videos, they helped me get started and opened my eyes to the bigger picture. It's fascinating how once you get the hang of things, adding to just becomes fun. Gonna go grab that Patreon link now, you deserve it.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      That's awesome! Going with chunks is definitely the way to expand upon this so you can use it in massive worlds.
      Best of luck with your project!

  • @roshanthapa1297
    @roshanthapa1297 3 года назад

    Superbb🔥. Loved it

  • @An0therR0gue
    @An0therR0gue 3 года назад

    i love the polygon packs. i hope you use more of them in the future.

  • @johnnyxp64
    @johnnyxp64 3 года назад +5

    nice. i would also like to see you try at 07:35 and use that rendering effect to your rooftop instead of your player character. and make it able to go completely transparent (diablo Arpg style) or as you have it now but reverse for the rooftop.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      Yeah in the future I'd love to research some more complex see through methods like making blocking walls/ceilings transparent or a circle hole cutout.

  • @emanueltejadacoste2250
    @emanueltejadacoste2250 3 года назад

    Amazing ! You always kill it

  • @djblast101
    @djblast101 3 года назад

    Amazing!

  • @arcday4281
    @arcday4281 3 года назад

    Great job ! It looks good !

  • @marexexe7308
    @marexexe7308 3 года назад

    Wow, Thanks!

  • @pius6330
    @pius6330 3 года назад +2

    Great and detailed tutorial as always! Lots of possible ways of applications. Will definitely use it in my future projects :)

  • @personmuc943
    @personmuc943 3 года назад +1

    6:38 You could use The Sims effect where the walls can be hidden if it was in the front of the camera.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      Yeah in the future I'd love to research some more complex see through methods like making blocking walls/ceilings transparent or a circle hole cutout.

    • @Arkenald
      @Arkenald 3 года назад +1

      @@CodeMonkeyUnity This can be done very simply with a shader that visualy "cuts holes" into objects by making part of the object transparent.
      This shader can also be used to cut windows or door way into any solid wall. Of course you'll then need to cut an appropriate hole into the collision models.

  • @ChrisNoeth
    @ChrisNoeth 6 месяцев назад

    How do you handle camera rotation on such a scene... meaning you have to change the building selection when the camera rotates, right?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  6 месяцев назад

      Not sure what you mean, you mean the mouse position? The raycast from the camera will work regardless of camera rotation

  • @nikhstudiosthe1
    @nikhstudiosthe1 4 месяца назад

    Hey man, very nice vedio I was just wondering on how to use and setup the project files you have given in the description?

  • @Jack-io5tk
    @Jack-io5tk 2 года назад

    Loving the tutorials, I'm trying to do something just like this for a game I'm working on.
    Some quick questions:
    Do you know how you would go about showing the grid in play-mode?
    Is there a way to allow the grid to have negative grid points?
    I'd like to be able to change the grid size to without having to adjust the origin point, as that would also change the positions objects are loaded back into.
    Would it be better to have all the house building objects on one layer and use a RaycastAll to check for the building type of the object? or would this be overkill.
    Just to save a few layers for the future if needed.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад

      You can show the grid with a custom tilemap like I built here unitycodemonkey.com/video.php?v=gD5EQyt7VPk
      And I used it for exactly that purpose in the Factory game unitycodemonkey.com/video.php?v=88cIVR4KI_Q
      Technically you could have negative grid points as long as you have space and some offset in the underlying array, but that sounds like really confusing logic. Instead I would just make multiple grids and stitch them together.
      Yup you can indeed do RaycastAll and test if the object has some script to identify it.

  • @cupuyc1989
    @cupuyc1989 3 года назад

    Awesome video. Thank you very much =)

  • @nottheguy4328
    @nottheguy4328 3 года назад +3

    Could you add a feature where, after saving an object, you can choose to paste it on grid or as a loose object so that you can rotate houses after building them?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      Hmm interesting, yeah that could be done, just need to make LooseObjectTypes that mimic the Floor and EdgeObjects. Alternatively it would also be possible to use some math and some logic to rotate a ground 90º

  • @MarceloL_R
    @MarceloL_R 3 года назад +1

    Awesome video. I'm very thankful that you showed me how a grid system is so powerful (I'm following all yours videos of grid system 2D and 3D). I just didn't liked the doors behavior. As you cited Brackeys, I recommend a video from SpeedTutor about doors kit system it is a very nice system available for free in the Unity assets store

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      What do you dislike about the doors behaviour? It's just a basic hinge joint

    • @MarceloL_R
      @MarceloL_R 3 года назад +1

      They are loose and do not close after the character has passed through it

  • @JayRKID
    @JayRKID День назад

    I k ow this is an old video but would this also work to place objects on walls and also objects on objects? Obviously with some modification to the code, thankyou for the video

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  День назад +1

      Hmm sure, for each WallEdgeObject you could have it store a field for what object is placed on it, like a Picture frame. Then you could place one on-wall object on each wall.
      Placing objects on objects, that would requiring modifying the objects themselves to support that. So the grid system only stores an object, and then the object itself has logic to be able to store something on it
      So yeah requires quite a bit of refactoring but it's possible

    • @JayRKID
      @JayRKID 19 часов назад

      @CodeMonkeyUnity thank you so much :) will try it out this weekend

  • @deleteduser7636
    @deleteduser7636 3 года назад +3

    You should really turn this into an asset pack. It would work really well.

  • @ToastandBananas
    @ToastandBananas 3 месяца назад +1

    Anyone have any ideas on how to hide walls that are on the same side as the camera (so that we can see the interior, like in The Sims)?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 месяца назад

      You could cycle through all the walls, calculate the Dot product towards the camera and decide to show/hide the MeshRenderer
      I use a calculation sort of like that in the backstab mechanic video ruclips.net/video/78J493qWfDI/видео.html

  • @Ghin_Antonic
    @Ghin_Antonic 3 года назад +1

    I would really like to use this kind of powerful code as a world builder tool in editor mode. Could you show or tell us how bout's we would I get the new code added here & the code from the previous city building tutorial working and tracking mouse movements in editor mode? To be able to quickly move and track the mouse whilst placing objects in editor would be a massive boon to quickly building modular worlds quickly.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      It would take a bit of work but yup you can make it functional in the editor
      I believe the method for raycasts is different, and spawning prefabs is also slightly different.
      Maybe a better approach would be to build it in run-time, then save it as JSON and in the editor load that JSON, might be easier

  • @SchalaArchives2023ish
    @SchalaArchives2023ish 3 года назад

    I take it at the end, the rotation for objects like fountains, barrels, etc are a simple input * delta time on Y rotation?

  • @djblast101
    @djblast101 3 года назад

    Is there a way to handle the NPC not run into objects? Like using nav mesh? Do you convert all the objects to static and recalculate bake the nev mesh? Seems expensive any ideas?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      The NAvMeshComponents has some features to allow runtime generation github.com/Unity-Technologies/NavMeshComponents

  • @ollllj
    @ollllj 3 года назад

    do dual contouring with qef() solver. only makes sense as compute-shader, else it would be way too slow. the search function of the pouet-forum is a great start.

  • @ausername4meplease
    @ausername4meplease 2 года назад

    Are these videos (the actual tutorials) available somewhere? This is “just” a run down or these videos?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад +1

      Not sure what you mean, this video is a tutorial although it is based upon things that were built in other video tutorials, there's a Grid System playlist in the description unitycodemonkey.com/search.php?q=grid

    • @ausername4meplease
      @ausername4meplease 2 года назад

      I mean, it’s a demo of what was built. Would love to see when you code it like in all your other videos. For example the video where you make the grid building system with houses. It was excellent! It helps to see you talk about / write the actual code than just downloading it and trying to figure it out. There are a lot or differences from the grid building video right? Thank you so much for doing these videos!

  • @DrakeOfOmens
    @DrakeOfOmens 3 года назад +2

    Your videos are great, but can you go into more detail on the grid system. tried following your videos but there's edits between each video that makes it hard to follow along and learn instead of just downloading your code.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +2

      This system has been built piece by piece over 2 years so yea it requires a bit of work to understand how it all connects. Maybe one day I'll make a step-by-step course on making it all from scratch.

  • @NeptixGaming
    @NeptixGaming 3 года назад +1

    Would the grid system be useful for creating a "tetris" style inventory? Like the ones from diablo or escape from tarkov?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +3

      Yup it would be perfect for that! That's a topic that I have on my list that I'd love to do at some point

    • @NeptixGaming
      @NeptixGaming 3 года назад +1

      @@CodeMonkeyUnity And i would totally love to see your take on it!

  • @clarkmeyer7211
    @clarkmeyer7211 2 года назад

    I thought this was a paid asset wow. I'll definitely give this a try. Just out of interest is there a way to make this building system conform to uneven ground. Like suppose I wanted to place a house on a hill. Would there be a way for the hill to flatten to the shape of the house?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад +1

      Flattening the hill would depend on what terrain system you're using. I've never tried modifying the Unity terrain system at runtime so not sure exactly how that would be done
      Another alternative is making the floor fit the terrain, you can use the terrain normal to rotate the floor object, kind of like I used to rotate the Scout probe launcher unitycodemonkey.com/video.php?v=67WObFrWpRg

  • @random_precision_software
    @random_precision_software 3 года назад +1

    What day will the house build system be available for download for non patreons?

  • @M3g4t0n
    @M3g4t0n 2 года назад

    How would you go about creating some type of runtime LevelBuilder using this system? Turn them all into ScriptableObjects? Or do you have a different approach?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад

      Not sure what you mean, this is already a runtime system. The house is built while the game is playing

    • @M3g4t0n
      @M3g4t0n 2 года назад

      @@CodeMonkeyUnity I know, that is the issue because once you stop "playing" the game in Unity, you lose all data/progress. I want to save this data, so the created objects stay even after quitting "the game".

  • @awesomeiram
    @awesomeiram 3 года назад

    Wow!

  • @feliperios9213
    @feliperios9213 3 года назад

    Any advices on how to hide upper floors when the character is on a lower floor?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      One way would be with a cutout shader so you look through the objects
      Or another way is just write some logic to identify objects above the player, maybe with a BoxCast, and hide/fade those objects.

  • @DarokCx
    @DarokCx 3 года назад

    Very Nice system indeed ! Looks awsome! Could you do a tutorial for the code behind it ?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      If you follow the rest of the Grid System playlist you should be able to understand it. Most of the videos on that playlist are step-by-step tutorials.

  • @belkacemF
    @belkacemF 3 года назад +2

    we are in ramadan i swear amma going to pray for you man thanks a lot

  • @fodk7021
    @fodk7021 3 года назад

    Nice tutorials . I need help with visualising the grid in the game I don't know how to do it.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      The default visualization that I made is based on Debug.DrawLine so you just need to enable Gizmos to see it

    • @fodk7021
      @fodk7021 3 года назад

      @@CodeMonkeyUnity yes but I want to see the lines in the actual game when the player enters building mode.Also thanks so much for responding that was fast you really care a lot about your viewers.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      @@fodk7021 Oh for that you need some code that cycles through the grid and creates a mesh or some sprites for the visual. I did that in the Factory Sim game which also uses the game Grid System ruclips.net/video/88cIVR4KI_Q/видео.html
      And I also covered how the overlay works in the Heatmap video ruclips.net/video/mZzZXfySeFQ/видео.html

    • @fodk7021
      @fodk7021 3 года назад

      @@CodeMonkeyUnity thank you so much

  • @NBAntony
    @NBAntony 3 года назад

    Can I get only this course without take all the bundle?

  • @JohnVanderbeck
    @JohnVanderbeck 3 года назад

    I can't seem to find the video where you converted the grid from a 2D XY grid to a the GridXZ class.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      I didn't do it in a specific video, first time I used XZ was in the Grid Building System ruclips.net/video/dulosHPl82A/видео.html
      It's just a handful of changes so if you compare the projects files from that video with the 2D one you'll be able to see the difference.

    • @JohnVanderbeck
      @JohnVanderbeck 3 года назад

      @@CodeMonkeyUnity Ah that'd explain why I couldn't find it :) I saw the change in that mentioned video and was like "What did I miss?" haha. The underlying concept really should be the same regardless of what plane it uses anyway as long as it is still a 2d grid.

  • @franciscojaviergraciasanti18
    @franciscojaviergraciasanti18 2 года назад

    I would like to have a more detailed explanation about the floorEdgeObjects, because I came from your last video about Building System.

  • @pollawatdee-unkong231
    @pollawatdee-unkong231 2 года назад

    Hello, I'm a newbie so I don't quite understand everything you said here. I follow through with every single video you have on this list, it is so painful but feels rewarded in the end. anyway, do you have a cause that explains this system step by step? I mean sometimes your code in the video is not the same as in your provided project. in order to solve that sometimes I write my own code in it and most of the time it conflicts with yours so... I'm telling you that I'm happy to pay for it at any cost just to learn this building system.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад

      Sorry I don't have a step by step course on this topic. This Grid System started as something pretty basic and over the years I added more and more things to it, I never planned right from the start to build all these systems on top so yeah there are a bunch of things that were done off screen although if you watch all the videos you should be able to understand the core logic behind it and understand the rest by browsing the project files.

  • @walterpalladino1965
    @walterpalladino1965 3 года назад +1

    Hello, great tutorial but I tried to load the package on Unity 2020.3.10 and I get an error Shader error in 'TextMeshPro/Mobile/Distance Field': Couldn't open include file 'TMPro_Properties.cginc'. at line 92. Any idea?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      I've seen that error a few times, usually means I need to update the TextMeshPro package

    • @walterpalladino1965
      @walterpalladino1965 3 года назад

      @@CodeMonkeyUnity Thank you

    • @lordcailx
      @lordcailx 2 года назад +1

      Also got this error. In case anyone else has the same issue here's one fix..
      In GameScene > Hierarchy tab: Click GameHandler > UI > Canvas > GridLevelUI > Text
      Under Text > Inspector tab: Find Shader > Set to TextMeshPro/DistanceField

  • @lgdcompany8151
    @lgdcompany8151 3 года назад

    Can you create a video about Foot placement using Animation Rigging in Unity 3D

  • @SpaceMango
    @SpaceMango 3 года назад

    What is the easiest way to replace the placeholder models with my own? Everything works fine but replacing the models have been confusing.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      Usually its good practice to separate the visuals from the main object, so your visuals are a child of the object that contains the logic. Then just go into that prefab and swap out the visual for something else.
      If you place everything in the same parent object then yes it becomes much more difficult

  • @warfarecreations379
    @warfarecreations379 3 года назад +1

    I love u that's it.

  • @michaelcross8392
    @michaelcross8392 2 года назад

    Possibly a super dumb question, but if I was creating a tactics rpg how could I make them pathfinder between the multiple levels?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад +1

      It depends on how you are handling pathfinding, you need to create some link between the grids.

    • @michaelcross8392
      @michaelcross8392 2 года назад

      @@CodeMonkeyUnity gotcha, makes sense to me. Right now I have one grid that maintains all of the "set pieces " I might have to go through and see about separating that into a grid of grids that each maintain all the set pieces.

  • @ausername4meplease
    @ausername4meplease 2 года назад

    Looking trough your excellent code I got it almost working. Problem is that when adding walls they do not "stick" / cannot find the edges :( Been struggling with this a week now. So so close. Do you know what the issue can be? Is it possible that you can provide a zip file with only the bare minimum? It is so hard with so much code, expecially since this video does not actual go step by step how to modify your previous code.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад

      It's been a while since I made this video but if I remember the side walls are snapped to a collider on the edges, so just go through the code where it's doing a raycast to find the edges. I don't remember if I used a Layermask or not, perhaps you need the side edges on a different layer.

  • @anyidentifier
    @anyidentifier 2 года назад

    Is there a complete video of this project?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад

      Complete video? You mean the rest of the Grid System? It was covered in multiple videos, all on this playlist ruclips.net/p/PLzDRvYVwl53uhO8yhqxcyjDImRjO9W722

    • @anyidentifier
      @anyidentifier 2 года назад

      @@CodeMonkeyUnity no, I mean the house building system. If it was made in a livestream not in RUclips or something else...

  • @yugnagushnyaguah
    @yugnagushnyaguah 2 года назад

    This tutorial series is great and I've been following along, but I can't seem to figure out how to delete floorEdgeObjects or looseObjects at runtime. I may have just missed this somewhere but does anyone have an idea on how to implement this?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад +1

      It's been a while since I made this system so I don't remember how I set it up exactly but for loose objects you can just do a Raycast, just like the mouse is doing, see if it hits a loose object and just delete it and remove it from the list. Same thing for a floor edge object, just need to update the parent to tell it the edge was deleted.

    • @yugnagushnyaguah
      @yugnagushnyaguah 2 года назад

      @@CodeMonkeyUnity Thanks!

  • @ssshammi
    @ssshammi Год назад

    Hello i tried to open in this 2022 Universal RP and it doesn't seem to work, all i see in a capsule. Ill try to get the low poly assets by Synty, what are the controls?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Год назад

      Yes I did not make the assets myself so I cannot include them in the package, but all the code is there and functional

    • @ssshammi
      @ssshammi Год назад

      Thanks for quick reply, if i include the assets will it automatically replace ?@@CodeMonkeyUnity

    • @ssshammi
      @ssshammi Год назад

      @@CodeMonkeyUnity Also how to delete / remove assets what is the key.

  • @rrahll
    @rrahll 3 года назад +1

    Is it your new game or new tutorial?)

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      It's a tutorial but who knows! Maybe I'll use this and expand upon it on my next game

    • @rrahll
      @rrahll 3 года назад

      @@CodeMonkeyUnity got it, cool!

  • @KandalaJyothiprabash
    @KandalaJyothiprabash Год назад

    hlo
    I want that how can we change terrain place in game scene

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  Год назад

      Terrain is an object so you change it like any other object. Make the terrain a prefab and spawn it whenever and wherever you like

  • @johnanthony44
    @johnanthony44 3 года назад

    How would you use nav mesh with this?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      The same as usual, just define the walls and objects as unwalkable then refresh the navmesh when an object is placed.

  • @mrbutwhyme9941
    @mrbutwhyme9941 3 года назад

    When I try connecting my phone to unity remote 5 In editor project settings Computer doesnt find my phone. Everything is well connected and i installed unity remote 5.

  • @ssshammi
    @ssshammi Год назад

    When i went up on the roof the character stayed there. seems like a bug. Thanks for sharing.

  • @khalilsnoussi8559
    @khalilsnoussi8559 3 года назад

    i want to sign up on your website but your activation links are not working and thus cant access your project files can you please fix it

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      Check your spam folder, click the link on the last email

    • @khalilsnoussi8559
      @khalilsnoussi8559 3 года назад

      @@CodeMonkeyUnity i did get the mail but the activation link was broken and now it works perfectly thanks dude.

  • @Oddinx
    @Oddinx 3 года назад

    If someone is having problems with the package, the solution is installing or update the following packages: Cinemachine, TextMeshPro,UniverSalRP.

  • @jlam1703
    @jlam1703 2 года назад

    What does this "SO" mean on "ClassNameSO"?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад +1

      Scriptable Object, I covered them in detail here unitycodemonkey.com/video.php?v=7jxS8HIny3Q

    • @jlam1703
      @jlam1703 2 года назад

      Oh god, it was so obvious. How did i not notice this? 😂😂😂
      Thank you so much!

  • @whattowatchrightnow
    @whattowatchrightnow 3 года назад

    GridXZ cannot be found? What am I missing?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      Where are you seeing that? GridXZ is included in the project files

    • @whattowatchrightnow
      @whattowatchrightnow 3 года назад

      @@CodeMonkeyUnity Using the latest version of Unity, starting a new project, importing the package (downloaded from your site) and then building triggers this and a mess of other errors. I tried to compile with your utility package added to no avail. Should I be including any other packages?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      @@whattowatchrightnow Do you not see GridXZ.cs in the project assets? Use Unity 2020 although any version should work

    • @whattowatchrightnow
      @whattowatchrightnow 3 года назад

      @@CodeMonkeyUnity My mistake. I forgot to read the prerequisite. I added your utility class to this package and the only issue I see is that on line 43 of WeaponTracer you're using UtilsClass.GetAngleFromVectorFloat3D(shootDir) instead of UtilsClass.GetAngleFromVectorFloatXZ(shootDir)

  • @I_am_thing
    @I_am_thing 2 года назад

    Can you make a vr building system tut?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад

      The system doesnt care how the camera is setup, can be on a VR head or a top down camera, the build system works exactly the same

  • @Jack-429
    @Jack-429 3 года назад

    Is this Unity is easy to use

  • @johnnyxp64
    @johnnyxp64 3 года назад

    why the field of view / camers is getting so blurry so soon and not only arround the edges?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      It's the Post Processing Field of View effect, I made it a bit too intense so it was easily seen in the video at a glance.

  • @mlucifer79
    @mlucifer79 2 года назад

    Thanks as always , if you remember you use "O" keycode for saving map in update event , So I have a question , why saving system just working in update event ? i try to make button for saving , but the saving is not working , the json file included as below (when i want to save map with button ) but if i press [ O ] button everything is fine :
    {"placedObjectSaveObjectArrayArray":[{"placedObjectSaveObjectArray":[]},{"placedObjectSaveObjectArray":[]},{"placedObjectSaveObjectArray":[]},{"placedObjectSaveObjectArray":[]}],"looseSaveObjectArray":[]}

    • @mlucifer79
      @mlucifer79 2 года назад

      I checked another option , For example demolish also is not working with button press as well

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад

      Looks like you're not saving any object, add some Debug.Log during the save cycle to see which objects it's cycling through.
      Did you make your own custom SaveObject class? IF so make sure you add the attribute [System.Serializable]

    • @mlucifer79
      @mlucifer79 2 года назад

      @@CodeMonkeyUnity Thanks for reply , No i didn't make any save class , check below , thats your code , in update just [ O ] key for saving , am i right ? i am just making public void class and just put Save(); inside that for saving and link that to one button , when i press that button nothing happen just in debug show me i press button and in saving class everything is fine (look like) but nothing saving , but when i press [ O ] button saving system working,
      private void Update() {
      HandleGridSelect();
      HandleTypeSelect();
      HandleNormalObjectPlacement();
      HandleEdgeObjectPlacement();
      HandleLooseObjectPlacement();
      HandleDirRotation();
      HandleDemolish();
      if (Input.GetMouseButtonDown(1)) {
      DeselectObjectType();
      }
      if (Input.GetKeyDown(KeyCode.O)) {
      Debug.Log("data save");
      Save();
      }
      if (Input.GetKeyDown(KeyCode.P)) {
      Debug.Log("data load");
      Load();
      }
      }
      public void systemsavingTest(){
      Debug.Log("Saving button Ok!");
      Save();
      }

  • @kcatholywater7134
    @kcatholywater7134 3 года назад

    When you see ads of code monkey in code monkey own videos :
    *Confused happiness sad*

  • @downstream0114
    @downstream0114 3 года назад +2

    A bit heavy on the depth of field :P

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +1

      Heh yeah definitely made it a bit too intense so it's clearly seen in the video, I would pull it back quite a bit if I used this in a final game.

  • @AxeDatcm
    @AxeDatcm 3 года назад

    Wait, i got code monkey ad from RUclips while watching code monkey video

  • @nuggetschannelcz
    @nuggetschannelcz 2 года назад

    And where is code it isn't in video and i don't know where to put it from project files be cause i have problems with materials and URP and lot of errors

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  2 года назад

      What code can't you see in the video? The project files contain all code. Make sure you have URP and Cinemachine installed.

    • @nuggetschannelcz
      @nuggetschannelcz 2 года назад

      @@CodeMonkeyUnity ok thanks

  • @elzar8763
    @elzar8763 3 года назад +2

    Wow, why are you doing all this for free? :)

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад +2

      As long as a small portion of people buy my courses/games/patreon then I can make this work and continue publishing 90% of my work for free!

  • @sinner1263
    @sinner1263 3 года назад

    Remake your other videos like programming videos and make it simpler. Like do a more simpler version of that video. Thanks 👍😊

  • @abdalaluis2
    @abdalaluis2 Год назад

    I’ve just leave the ad from ‘studying a MBA in IU’ girl

  • @zainuldin9095
    @zainuldin9095 3 года назад +1

    Present

  • @ogrenmedengecme8652
    @ogrenmedengecme8652 3 года назад

    😍😍😍

  • @Soupie62
    @Soupie62 3 года назад

    For added realism, could you have sloping land blocks? Add these to the base grid, to emulate a real world slope.
    Walls need to be custom height, to ensure floors are level.
    For anyone who wants to recreate Frank Wright's Falling Water house, or the Edinburgh Writer's Museum (Lady Stair's Close)

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      Sure you could make some foundation objects that get placed "inside" the terrain, then normal floors and walls and then just add more levels total and possibly some extra logic to limit how high you can build based on the height different to the terrain right underneath.

  • @مهند-ن6ي2د
    @مهند-ن6ي2د 3 года назад

    i love your script but ican do build system whit craft in survivile games i hobe do that pls
    (:

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      I also made this script work in third person ruclips.net/video/gkCBCCKeais/видео.html

  • @ClonkAndre
    @ClonkAndre 3 года назад

    4:56 fail

  • @AMIR-oh1ht
    @AMIR-oh1ht 3 года назад

    If code monkey use unity doesn't that mean code gorilla use unreal?

  • @poderlover1528
    @poderlover1528 3 года назад +1

    Second

  • @jeka1030
    @jeka1030 3 года назад

    your DOF is so crazy, can't see anything.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  3 года назад

      Yeah it's a bit too intense so it's easily seen in the video, I would lower the effect quite a bit if I used this in a complete game

  • @zeeexstudio
    @zeeexstudio 3 года назад

    1😊