Can somone show me how to make an event to remove and an event to replace a socket in the same position in a static mesh please?
I know “Remove Socket” and “Add Socket” but I can’t use them
Many thanks
Can somone show me how to make an event to remove and an event to replace a socket in the same position in a static mesh please?
I know “Remove Socket” and “Add Socket” but I can’t use them
Many thanks
You cannot - don’t want to? Or not sure how to?
I not sure how to…
UP…please…
Hey @3dvisual.it!
Can you explain what it is you’re trying to do? Because typically you don’t want to actually delete and re-add a socket for any reason… I can’t think of one anyway. You can attach and detach actors without destroying it, if that’s what you’re trying to do… among other things but typically sockets aren’t generated and added to/removed from a Skeleton on the fly.
OK
I’m building a configurator drag and drop of componible furniture
I added socket to static mesh to attach them with snapping and all it’s working.
My problem is taht in any case and any situation some socket shouldn’t be unable to attach.
How can I do that?
Many thanks
So there are rules regarding who can attach to whom, right? Both sockets and static mesh component (and actors) have tags:
When attaching, check whether the static mesh has a tag compatible with the one on the socket. Sadly, it seems that sockets can only have a single tag so it may be fiddly / limiting; but it might as well be enough - depends on the scope / complexity.
Could this work for you? It’s untested pseudo-script but sounds like it could work.
Other than that, you may need to write you own socket / attachment system. Afaik, in BPs you cannot construct socket objects.
There ARE several Modular Snap systems on the UE marketplace. However I can’t speak to any of their usability outside the editor… I’ve used the editor-only version of this one on 5 or 6 projects now and it’s great for building levels but haven’t used the in-game version. That being said, this one REALLY seems like it’s the perfect fit for EXACTLY what you need. (linked here. This is not an official stance of Epic Games, just me, Mind-Brain. Not endorsing just did a refined search to help you find useful things.)
Thankyou Mind-Brain
I Have already purchased this plugin and it work fine, but it have the issue that i can’t disable some socket to snap…
If that’s the case, you should try posting on the “Questions” tab of their store page! The creators seem to answer questions pretty readily, you should ask there and they might be able to walk you through doing that!