This is a great tool that is surprisingly hidden, did you know it existed? 🌍 Get my Complete Courses! ✅ unitycodemonkey.com/courses 👍 Learn to make awesome games step-by-step from start to finish. 🎮 Get my Steam Games unitycodemonkey.com/gamebundle
@beastmaster69453 жыл бұрын
Can you make me popular like you???
@airzxfade112 жыл бұрын
yea this crashes my game every time
@darklicren Жыл бұрын
@@airzxfade11 my game also crashed when doing this.
@moodl3d8563 жыл бұрын
Even though these things wouldn’t fit into my game they are still very cool to see, I love interactive environments, thanks for the video :)
@raghavgarg25203 жыл бұрын
Never seen such a hard working man, keep it up :)
@sodarocketstudios3 жыл бұрын
This video was just in time for Brackey's game jam. the theme is let there be chaos, so I am sure people will be looking for something like this.
@manasnagelia3 жыл бұрын
Excited for the next video!!
@CRUMVIII3 жыл бұрын
Oh wow perfect timing. I was only a few days ago, asking about destructible stuff. Cool video. :D
@davidwaynefox75134 ай бұрын
OMG! This is one of the most useful videos I've ever seen for my modeling. THANK YOU SO MUCH!!!
@dertobbe1176 Жыл бұрын
I learn for about 4 weeks now and u are the first one who talks about converting normal objects to probuilder... Thanks 😂
@User334233 жыл бұрын
Its realy easy to make explosion effect on a object, just give the object health and when it reaches 0 change it with a same object but cracked in pieces using a blender add-on called "cell fracture", and add some explosion force
@freezinfire3 жыл бұрын
Cool video, as expected.
@arcday42813 жыл бұрын
Very useful ! The course is also getting better and better !
@bazyt1 Жыл бұрын
Thank you so much! This is one of the most useful tools in Unity, I think. And I didn't know ProBuilder could do any of this... 🙌
@r1pfake5213 жыл бұрын
Can you make a new (paid) C# course about a full / "advanced" RPG combat system with abilities, status effect etc. This may sound selfish but I think RPGs are a popular genre, so it would be useful for others too, what do you think? You said you want to make a grid based tutorial, maybe you can combine it and make the RPG combat system of the course turn/grid based.
@arcday42813 жыл бұрын
The system is complex and depends on the specific requirements for it ! I think it's better for you to create it yourself - since such an "asset" will be confusing - and you will still need to understand it in order to change, add or fix something ! It is quite possible to do this based on the video content of "Code Monkey"! And yes, I am a fan of such games (especially "old school") I hope you will be able to create a full-fledged RPG and we will play it with pleasure )))
@Hietakissa3 жыл бұрын
@@arcday4281 It's easier to learn (and understand) something when a genuine professional makes it while simultaneously talking about it. Yes, they need to understand it in order to modify it and to use it properly, and they will if someone teaches them how it works.
@CodeMonkeyUnity3 жыл бұрын
Yup making another C# course is definitely something I'd love to do, now that I've been working more and more with 3D it would be great to do a 3D Survival RPG or making a Factorio-like. The main issue as usual is time, so I'd love to do it but not sure when. I'm planning another update to the Ultimate overview course in October so maybe after that I'll think about making a new course.
@r1pfake5213 жыл бұрын
@@CodeMonkeyUnity Awesome, these sound like interesting topics
@mirkoemir3 жыл бұрын
Awesome ... I didn't know this feature and indeed it is very useful. Thank you for share it.
@leviadams44883 жыл бұрын
your so good at explaining and then helping others with there problems afterwards your channel is amazing
@PastaCouch Жыл бұрын
Is it possible to apply the subtraction method in-game? Like a script activates it?
@BBdaCosta3 жыл бұрын
This was always I doubt of mine and it's very easy with Pro Builder, but how can I create this cut in running time, like this simple games of cutting something to solve a puzzle. Thanks for the video.
@CodeMonkeyUnity3 жыл бұрын
I haven't tested it but ProBuilder comes with all the source code and you can see what it's doing on ProBuilder/Editor/EditorCore/BooleanEditor.cs It seems all the logic should work in runtime but not sure.
@ysundawa3 жыл бұрын
Yes in fact there is a ready to use asset in the store which do exactly what you need, some of them included the source i believe (but not free as far as I know),... just trying to add another alternative to learn about how to do that.
@diliupg3 жыл бұрын
@@CodeMonkeyUnity WIll be Maths heavy..
@AllExistence3 жыл бұрын
Is probably not because of pivot, but mesh bounding box. Is used for determine whether object is within camera frustum.
@betahunter3 жыл бұрын
In my experience it struggles on large meshes. Just crashes every time. I am however talking about terrain size meshes. Converted a terrain into a mesh and vanted to make caves which causes it to crash every time I use the bool tool.
@G4M5T3R3 жыл бұрын
Could you break the terrain into chunks then bool tool the chunk you want to make a cave in?
@betahunter3 жыл бұрын
@@G4M5T3R Hmm that might do it, but the terrain is a rather small valley, so I would have to add some serious fog to make that work. But great idea, thanks :)
@CodeMonkeyUnity3 жыл бұрын
Interesting, I only tried with small meshes so maybe that's why I didn't have issues. Yeah if the issue is with the size then breaking it into multiple chunks should work
@Icewind0073 жыл бұрын
I was trying it on low poly houses (SYNTY) and that crashed too. edit: Nevermind, it crashes even for two cubes.
@no_cap24992 жыл бұрын
@@Icewind007 lol me too
@LeondalePhotographer2 жыл бұрын
wow! if you knew how long I was trying to do this!!! Thank you!
@LeondalePhotographer2 жыл бұрын
it crashes every time I click subtract. :(
@CodeMonkeyUnity2 жыл бұрын
Is your mesh very high detail? Maybe try cutting a smaller part and cut it in multiple pieces
@LeondalePhotographer2 жыл бұрын
@@CodeMonkeyUnity i will try this. so honored you responded! love your work man, you inspire/help many!
@zekiozdemir4203 жыл бұрын
I was looking for something like this thank you!
@rocksfire43903 жыл бұрын
see stuff like this is so useful to know, even if it's not related to the game i'm working on current. can't wait to see what you have been cooking up.
@dmytrosavostianov30553 жыл бұрын
Thank you for your videos!
@alienouz3 жыл бұрын
cool video as usual. didn't know this feature is there. waiting for the next video
@TPD_Dev3 жыл бұрын
I was looking to do something like this and got a popup of this lol and thanks
@barisdogan173 жыл бұрын
Hello codemonkey, i am following you your videos are awesome. Now i am developing my own games ( i am a backend dev. actually not game a dev. ) and your videos are so helpful. Thank you for everything we are waiting for new and more helpful videos :D I will share you my first game when i published it :)
@CodeMonkeyUnity3 жыл бұрын
I'm glad the videos helped you! Thanks!
@Wulterchen2 жыл бұрын
Thx, helped a lot!
@ysundawa3 жыл бұрын
Owh dang.... al this time I always cycle through Unity and Blender, import and export, failed and try again.... and again.... this is extremely useful and very easy to use.... thanks !
@bdc59502 жыл бұрын
Thank you so much! You are amazing.
@diliupg3 жыл бұрын
I was monkeying with my code when I saw this video! Fabulous! Hope I can use this tool to take some unreal objects and Unite them...😁
@LemuriaGames3 жыл бұрын
This is EXACTLY what I needed for a game what I have nice meshes but no damaged or destroyed versions of them. Now I can make them myself. :-) I'll find out what it does at the new faces it creates (the seams/splits). It would've been nice to mention that in the video as well.
@CodeMonkeyUnity3 жыл бұрын
Yeah those new faces take on the material of the second object
@LemuriaGames3 жыл бұрын
@@CodeMonkeyUnity that is actually very valuable information. Thanks.
@teawa_ Жыл бұрын
That was easy! Great video, I’ll do anything to avoid opening blender
@rishibarathi14873 жыл бұрын
I have a small doubt. How do I apply that union and intersection operation in runtime? Like attach two objects as one when they are close to each other and separate them with a button click. How do I do the attach and detach part?
@danielhasi69743 жыл бұрын
Great Video :) and now a tutorial for the animation rigging package that you used in your 3rd person shooter :D
@thelegendarymushroom80 Жыл бұрын
Hey there :) I need some help, the set pivot thing is not working for me and I can't move my broken piece around anymore with the arrows, because I can't find them at all :(, but im rly thank full for this tutorial :D the others I found where just about how amazing this feature is and didn't explain on how to actually use it :(
@thelegendarymushroom80 Жыл бұрын
10 sec in and i realized my mistake, I forgot to press back onto the full cube button on the middle top of the window (changed view) okay got fixed haha
@spookyflower37372 жыл бұрын
whenever i apply the substraction my game just crashes can you help me
@BioToxin3 жыл бұрын
Always done this while modeling, never thought to try it in IDE
@Andredy892 жыл бұрын
yep, that's the same as in Blender or any other 3d software... but ...how to make holes at runtime via code? Like building in SIMS 3
@Rehd6611 ай бұрын
Is there a way to do this with existing prefabs made up of LODs?
@supertenchoo42713 жыл бұрын
Great video
@mahmoudtarek45063 жыл бұрын
Man you just came in time I wanted to use this mechanic for the Brackeys game jam 2021.2 Let There Be Chaos
@CodeMonkeyUnity3 жыл бұрын
Awesome, best of luck with your entry!
@neelamshahi86303 жыл бұрын
Best of luck
@neelamshahi86303 жыл бұрын
I f you win you have to give party
@zainuldin90953 жыл бұрын
Please Make a video on Unity Level System.
@G4M5T3R3 жыл бұрын
He did: kzbin.info/www/bejne/oXymfYCsqMx0iJI Or kzbin.info/www/bejne/aXqYlWWoiq9jpqc
@lavizpandey99573 жыл бұрын
this is awesome
@D-Dev3 жыл бұрын
Cool, I didn't know about that "Experimental Features". But I think that is still better and faster is creating destructable meshes in blender then do it manually in Unity.
@CodeMonkeyUnity3 жыл бұрын
I have no idea how you do it in Blender but it took me maybe 3 minutes to cut a wall into various parts.
@D-Dev3 жыл бұрын
@@CodeMonkeyUnity Making breakable in blender: kzbin.info/www/bejne/iWK4p3iaZt2emdE . It will be awesome if Unity will be add possibility to use this experimental feature in runtime to create simple destruction system or something like that. :)
@kken87663 жыл бұрын
wow~~~ look forward to seeing breaking doors and buildings.
@JustStart5623 жыл бұрын
Can it be done in run Time though
@apubetico3 жыл бұрын
damn bro, this is powerfull
@partydave10672 жыл бұрын
The thing is I need to cut a part of a big mesh upon collision
@LalitaHamill2 жыл бұрын
I followed your clear instructions, and it all worked until I selected 'subtraction', at which point my Unity project closed. I tried it again, using 'union', and my project closed again. I am using 20221.3.2f1 Do you know if Unity has disabled this as an option? I would really like to have access to the boolean (I forget how to spell it)
@CodeMonkeyUnity2 жыл бұрын
I don't think it's been disabled but it is experimental so perhaps it doesn't work well with that TECH version. The only crashes I've had were with super high poly complex meshes, does it still crash if you try to use it on something simple?
@LalitaHamill2 жыл бұрын
@@CodeMonkeyUnity I was using something quite simple, so I'm not sure...I think you're right that it doesn't work well with this tech version...to bad!!
@ouramasque7815 Жыл бұрын
I think it's still in experimental because when I tried to use it to cut a model from sketchfab into smaller pieces, unity crashed. Twice.
@Tester135658 ай бұрын
Thank you for much wow
@minosprime58213 жыл бұрын
could you make your steam app work on mac?
@vincentlauwen97423 жыл бұрын
Here's Johnny!
@TheSauceManOG2 жыл бұрын
my unity project crashes whenever i use the subtraction tool
@mamazing653 жыл бұрын
Hi good tutorial when will you make next video and can I use this to cut 3D objects?
@CodeMonkeyUnity3 жыл бұрын
Yes you can cut 3D objects, all the objects I showed are 3D, also works in 2D
@vedantrikawale20773 жыл бұрын
Its a really good video
@vedantrikawale20773 жыл бұрын
@@YiKaG I didn't saw the full video but important parts which were helpful for me
@robertogirardi68613 жыл бұрын
A simply question about courses. Are you planning to update the 2d platform course without bolt but only with c #? Thanks for any reply
@CodeMonkeyUnity3 жыл бұрын
You mean converting the Platformer game to work with C#? That's not something I'm planning but in the course I use Bolt with programmer naming so you can easily convert each node into the corresponding C#
@robertogirardi68613 жыл бұрын
@@CodeMonkeyUnity yes. Maybe you could make a simple tip/video to how do that? Thanks. I think i may be usefull to anyone
@no_cap24992 жыл бұрын
I have one slight issue, When I use the subtract feature it successfully cut a door in the wall however the problem is when I add a collider to that new wall with the door cut it doesn't let me pass through the door because the collider treats it as a wall with no holes. Any fix for this?
@CodeMonkeyUnity2 жыл бұрын
Try making the Mesh Collider convex. Alternatively don't use a Mesh Collider, make multiple BoxColliders for the wall shape
@ChrisVideosGreek3 жыл бұрын
l need assistance, is it possible to download probuilder on Unity 2018 lts? Also the video is very useful don't stop these videos
@CodeMonkeyUnity3 жыл бұрын
ProBuilder has been around for ages so yes although I don't remember when it was added to the package manager, for 2018 maybe you need to manually install the package from the asset store
@ChrisVideosGreek3 жыл бұрын
@@CodeMonkeyUnity Oh ok, l'll try. Thank you for the reply
@070tahsin3 жыл бұрын
Can you make a game which is focused on clean code?
@thaipham71983 жыл бұрын
I got crash when use boolean tool
3 жыл бұрын
how can I use it in runtime? I would love to see you tutoring it xD
@CodeMonkeyUnity3 жыл бұрын
I haven't tested it but ProBuilder comes with all the source code and you can see what it's doing on ProBuilder/Editor/EditorCore/BooleanEditor.cs It seems all the logic should work in runtime but not sure.
@snake19876663 жыл бұрын
what are the downsides of using this? I mean, using booleans on a mesh is the best way to do it?
@CodeMonkeyUnity3 жыл бұрын
Someone else commented that this tool has issues with giant meshes, beyond that I haven't had any problems
@BlackJar722 жыл бұрын
Being able to do this is exactly what I need to do -- except it really doesn't. It would be so much more useful to be able to do this in code to create a system for player created content (think of players adding doors and windows to Sims houses).
@CodeMonkeyUnity2 жыл бұрын
ProBuilder is open source so you can just go through the package code to find out how to call that from your own code. Although making a player mechanic using this would probably not be recommended, remember this is still marked as experimental so I would make a core mechanic in your game based on an experimental feature.
@seb.50533 жыл бұрын
Can this work for a 2D environment?
@CodeMonkeyUnity3 жыл бұрын
I didn't test if but yes you can probably use this same tool with quads for sprites
@TatlisDev3 жыл бұрын
Ty for the tutorial but could you also show the same thing but in 2D?
@CodeMonkeyUnity3 жыл бұрын
I didn't test it but it should work just fine with cutting a quad mesh
@marksmithcollins3 жыл бұрын
How much is performance loss?
@CodeMonkeyUnity3 жыл бұрын
Compared to what? It's just a mesh
@esosaosayamwen91522 жыл бұрын
my unity keeps crashing every time I try to split my object. Is there an alternative way to SLICE objects?
@CodeMonkeyUnity2 жыл бұрын
You can slice them in Blender
@alijaras3 жыл бұрын
I have a question When i use the new input system and when i make a variable type of input actions I can't reference it in the editor even if it's public and it's throw error in the console that there is a null reference I have add that code and still have the same issue private Input inputActions; public void Awake() { inputActions = new Input();}
@CodeMonkeyUnity3 жыл бұрын
Did you name your input actions object exactly Input and generated the C# class?
@alijaras3 жыл бұрын
@@CodeMonkeyUnity Yes
@alijaras3 жыл бұрын
@@CodeMonkeyUnity I have followed your 45 video about the input system and the error appears in the line 23 in the min 23:51
@CodeMonkeyUnity3 жыл бұрын
@@alijaras Use Debug.Log to find what is null kzbin.info/www/bejne/a5rVp2ZmYseHgNk
@TindallB-Gamedev3 жыл бұрын
Hi!
@neelamshahi86303 жыл бұрын
This I need wow 😎
@audreyjensen6662 жыл бұрын
Video starts at 01:21
@khyzr3 жыл бұрын
can u make a updated 2d inventory unity system like minecrafts??
@CodeMonkeyUnity3 жыл бұрын
I did make that quite a while ago, it's still up to date kzbin.info/www/bejne/e2qUf4ysedamr5o
@arete313372 жыл бұрын
Unfortunately this crashes an HDRP scene on 2021.3.0f1 every time.
@CodeMonkeyUnity2 жыл бұрын
On every asset? I've tested with with about a dozen assets and only one of them caused a crash. maybe it's too high poly?
@pandaengine3 жыл бұрын
I can not turn on Experimental Features on Unity. It's annoying. But great video nontheless!
@CodeMonkeyUnity3 жыл бұрын
What does it do? It looks like it's frozen but it's recompiling the script, click the button and don't touch Unity for a while
@krakenchan3 жыл бұрын
Was this because of brackeys game jam
@CodeMonkeyUnity3 жыл бұрын
Not really but it seems like this tool would perfectly fit the theme!
@krakenchan3 жыл бұрын
@@CodeMonkeyUnity lol right haha
@krakenchan3 жыл бұрын
@@CodeMonkeyUnity quick question how can I get my games infront of you to be showed like what is the criteria that you are looking for? Thank you
@angreeee2 жыл бұрын
unstable. Only works cutting 2 cubes, with more complex meshes it either crashes or produces faulty meshes. Then i try to cut newly created object again, it already can't handle it. So it looks like it cannot work with its own creations or it's just my weak i7-11 3060 computer that is at fault. I just wasted many hours trying to get it to work. Better just invest 20-60 bucks and buy a stable, functioning tool with support from a creator from the asset store.
@GameBoy-ur9mb3 жыл бұрын
It is an experimental feature so it keeps crashing my game.
@CodeMonkeyUnity3 жыл бұрын
Really? I've used it a ton and haven't had a single crash or issue (other than the weird origin issue)
@GameBoy-ur9mb3 жыл бұрын
@@CodeMonkeyUnity ya. i am also using 2020.0.1 that could be the problem for me i guess
@myriadpro16414 ай бұрын
i dont have probuilder
@CodeMonkeyUnity4 ай бұрын
Go to the package manager and install it
@Funoa3 жыл бұрын
#notification_squad
@agroxk3 жыл бұрын
Hello!
@UberMassiveGaming3 жыл бұрын
Like everyone here I was also somehow looking for dynamic destruction and only found old blurry tutorials. Just watched as was disappointed that you only did the mesh merging, ya gotta rename the video to merging meshes man.
@saburnaseer63753 жыл бұрын
He said that part is in upcoming vid
@CodeMonkeyUnity3 жыл бұрын
What? Only merging? Did you watch the video? I show how to cut off a piece on 3:17 How to merge on 3:58 And how to cut on 4:20
@UberMassiveGaming3 жыл бұрын
@@saburnaseer6375 yes he did but my point still stands that the video was not about slicing despite the title, it was about mesh boolean math.
@saburnaseer63753 жыл бұрын
@@UberMassiveGaming come on he even replied to you.
@UberMassiveGaming3 жыл бұрын
@@CodeMonkeyUnity. I apologize I worded my comment poorly, you show mesh intersection and subtraction in this video. The video and thumbnail show actual sliding and shattering of objects. You state that is coming in a follow up video. My complaint is that you titled and put a thumbnail for a video you plan to do, not the actual video itself, which is about probuilder’s boolean mesh operations, not slicing and breaking meshes.
@동플-s3i2 жыл бұрын
crashed...if it's high poly object
@random_precision_software3 жыл бұрын
When is the main event? Cos that was click bait.. You didn't show how to do it.
@CodeMonkeyUnity3 жыл бұрын
What didn't I show? The tool is how you do it. Use a cube and Subtraction to cut a hole for a door. Use Intersection to create various pieces. What do you feel the video was missing?
@random_precision_software3 жыл бұрын
@@CodeMonkeyUnity you showed the wall exploding
@darkdoom9073 жыл бұрын
Crashed*
@warfarecreations3793 жыл бұрын
Reach ++
@darkdoom9073 жыл бұрын
Unity closed
@agroxk3 жыл бұрын
First comment
@themihanoid50203 жыл бұрын
Please don't give such videos name and preview image that don't describe its content I was expecting to learn in more details the way to substitute original objects with its shattered version And even if it's "part one", you'd expect it to be stated in the beginning of the video, the title or preview
@CodeMonkeyUnity3 жыл бұрын
How does it not describe the content of the video? With this tool you can slice objects, cut holes for doors and break them into multiple pieces. What details? How to instantiate a prefab?
@themihanoid50203 жыл бұрын
@@CodeMonkeyUnity So in my own projects essentially what I was doing is: Make an object, save a reference to a shattered object in a script attached to whole object, and when it breaks I just instantiate a shattered version and destroy a whole one. Judging by the title, preview (both the image and a little gif playing when hovering over a video) and demonstration at the beginning I was expecting to see the whole process of how you achieved that effect (to see if my way is less optimal or professional), but I've only seen how to cut meshes with probuilder and been told at the very end "the rest will be in pt.2" That's what I was upset about
@USBEN.3 жыл бұрын
Bruh
@dageon31273 жыл бұрын
Есть русские?
@heavensmorgue Жыл бұрын
clickbait, you didnt show how to slice. Reporting you
@CodeMonkeyUnity Жыл бұрын
What? It's right there at 3:10, if you want a thin slice you do an intersect action on one side of the object and another one the other side of the object.
@heavensmorgue Жыл бұрын
@@CodeMonkeyUnity In the Thumbnail there obviously a swiping motion with a slice not a static cut. You couldve taught about Boolean in under 1 min cause its that simple. I use it in Blender all the time.
@CodeMonkeyUnity Жыл бұрын
It sounds like you're having trouble simply thinking about how to connect all the pieces to build the mechanic you want but everything is shown on the video. You use the Intersect action to slice the object in 2 parts. Then in the code when the player slices the object you destroy the unsliced object and spawn the two slices and give them an explosion force. Exactly like I did in the destruction video unitycodemonkey.com/video.php?v=tPWMZ4Ic7PA