Can you perform CSG operations inside Unity?

I’d really like to be able to do some simple CSG operations inside of Unity. Is it possible?

Take a look here if you’re unsure: Constructive solid geometry - Wikipedia

Ideally I’d like to be able to create a ‘wall’ then subtract another block overlapping part of it to create a door way. I’d then delete the block used to create the doorway.

It’s fairly simple stuff, so if I can avoid having to make a model of it, it’d make my life easier :slight_smile:

http://forum.unity3d.com/viewtopic.php?t=12583

I don’t know if that makes life easier, though. How is it not easy to model a doorway into a wall?

It’s not that modelling it is hard, it’s just I’m after a specific look. If I can do it in Unity, then I can check how it looks in the Game window as I’m making changes.

I’ll take a look at the thread you’ve linked. Thanks :slight_smile:

Implementing rendering and collision support for boolean models in Unity would be far more work than just doing things manually.

Do you mean you want to do this during gameplay (to make a hole in a wall shaped like the player, say)? There’s no built-in way to handle this, but you could use the Mesh API to implement this kind of thing yourself.

That wasn’t what I was particuarly after in this instance, performing the operations in the editor to create a pre-shaped mesh would be fine.

I’ll check it out, thanks :slight_smile: