Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Copy static mehs sockets

Hi, is there a way to copy sockets from one Static mesh to another?

Product Version: UE 4.10
more ▼

asked Feb 06 '16 at 11:02 AM in Using UE4

avatar image

469 29 42 67

avatar image Shirk Dec 13 '17 at 06:20 PM

This would be helpful to speed up socket placement.

avatar image Emile May 07 '18 at 06:32 PM

Looking for the same thing. Would like this feature implemented if it doesn't exist,

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

This really annoyed me, so I came up with a blueprint library helper function, and a blutility to accomplish this.

The code for the function is:

 void UTOTGameBPLibrary::ReplaceStaticMeshSockets(class UStaticMesh *Source, class UStaticMesh *Dest)
     if (Source != nullptr && Dest != nullptr && Source != Dest)
         if (Source->Sockets.Num() > 0)
             for (int32 i = 0; i < Source->Sockets.Num(); i++)
                 auto Sock = Source->Sockets[i];
                 UStaticMeshSocket *NewSocket = NewObject<UStaticMeshSocket>(Dest);
                 NewSocket->SocketName = Sock->SocketName;
                 NewSocket->RelativeLocation = Sock->RelativeLocation;
                 NewSocket->RelativeRotation = Sock->RelativeRotation;
                 NewSocket->RelativeScale = Sock->RelativeScale;
                 NewSocket->Tag = Sock->Tag;

and here is a screenshot of the Blutility: alt text

more ▼

answered Jul 20 '18 at 09:54 AM

avatar image

26 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question