Inu Games - Modular Snap System

Thank you very much!

1 Like

Hi there, got an issue, defined a box with 6 sockets them all pointing outside with the red axis, somehow when I place a mesh close to other in the 4.27 version does nothing, despite the actors are close and set the settings to ignore names etc

Okay, seems like I had to recompile all and set the max angle to something greater than 0.
Now seems to work fine!

Hi Hevedy! Max angle 0 will probably never work. If you need only to choose exactly opposed directions then put some small number > 0.0

edit: just looked the code to make sure, it checks if the angle is < max angle, and there’s nothing that can be < 0, so max angle 0 will never match !

1 Like

I am currently running into an issue where some meshes will snap on one side of each other, but not the other. So it only works on one side of the mesh. Does anyone know why that might be? Thanks!

Hi. verify that your sockets on both sides have compatible names and that they are inside or near your simple collision. ā€œCompatible namesā€ means that the part of the name before the first underscore is equal for both sockets, like Socket_1 and Socket_2 will snap, but Socket1 and Socket2 will not

Hello, I just recently got this plugin and I am having trouble getting it to work. I read through all the documentation and a few of the comments in this thread to try debug the issue but I can’t seem to figure out why my meshes aren’t snapping to each other.

I have two static meshes with sockets on both ends, they are named the same and the search distance is cranked up just incase. The behavior is the same with any mesh/socket setup.

Here is a screenshot of the current setup.

Hi! The problem is probably with the orientation of your sockets. You need to rotate them so the X (red) axis looks up on Vine_02 and down on Vine_01.

Basically the red axis of the two sockets need to be facing each other in order to snap.

Normally you need to have those sockets red axis to look ā€œoutsideā€ of the mesh.

Also check that your mesh have collision defined and enabled

1 Like

Changing the rotation of the socket fixed the issue. Thanks!

2 Likes

Is it possible to snap to multiple sockets at the same time? For example, imagine a LEGO scenario in which you have two sockets on plane A that match two points on plane B – will the sockets automatically snap?

On a related note, is there an option to scale the object so that it can snap to both points as long as both snap points are in range?

Pretend that plane A is 20 cm long and has sockets at each end, both pointing up. Now, pretend that plane B is 10 cm and also has sockets at each end, pointing down. If the search distance is 20 cm and I put plane B above plane A within that distance, is there a way to get it to snap to both ends and scale the X dimension by 2 to snap to plane A?

Hi. The plugin only looks for one closest socket. So it will match one socket on plane a to one on plane b.
For the scale, it can change the transform of the snapped plane including the scale, but again it’s only based on the target plane transform, not the distance between sockets

Hi. I’m having a weird problem with MSS turned on in my project. I’ve been using it for several months without issue until last week.

Now, after snapping an item together (in this case simple wall panels), then hitting save… it moves the snapped item to World Origin 0,0,0. Undo doesn’t undo it. I have to go to world origin to find the thing it incorrectly moved. Mind you, the item that went to origin was really far away and there is nothing at origin for it to snap to.

Really confusing behavior. Not sure what would have changed to cause this. Any help would be appreciated.

Hi, weird indeed. We didn’t changed anything recently. Which Unreal version do you use?

ps: i just tried to check how it works in 5.4 and for some reason I have 2 folders in Engine/Plugins? No idea what’s going on here, but I feel like something is wrong with fab

maybe try to uninstall and reinstall the plugin, just in case. i will try to find out if it still works on my side

pps: i tried in ue5.3, 5.4 and 5.5 and it seems to work fine for me, snapping and saving don’t do anything strange. but i first updated the plugin and deleted the ModularSnapSystem folder. again, i have no idea why the plugin was marked for update, we didn’t update it since few months

Hm, thanks for looking into it. I’m on Unreal 5.5.4. I’ll try uninstalling and reinstalling. Like I said it was all working fine and then suddenly its not. The issue also only occurs intermittently which is even weirder.