x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to get StaticMesh Socket reference as UPROPERTY

Please can anyone refer to example which demonstrates how to get reference to StaticMesh socket in drop-down same way as editor does it without spawning that mesh as my data is data only object?

I have custom DataAsset class that should hold up properties for spawned object and load this class as needed based on location in content folder. What I would like to have is pull socket information about StaticMesh from content browser and then reference that sockets as UPROPERTY in editor to speed up and simplify asset setup as my data type should point to that socket locations and later on this data should be used post-spawn to setup my actor class properly.

I'm looking in a way how to help myself with setup. I know I can still make FString property and write full socket name there but I'm thinking if this could be done in a more elegant way eg: like on SpringArm component. I looked into source of this classes but so far it does not make much sense to me what is going on there. I see some functions to retrieve sockets and some struct that hold information about it.

I'm not sure if I use same structure as UProperty that it will be available in cooked game. Does anyone have experience with this?

In short I'm searching for way how to setup my data with socket names in unreal DataAsset builtin editor (target is my custom DataAsset derived class) without prior spawning target mesh. This information should live only in my DataAsset and I should be able to ask for it without need of searching for target socket by string (slow).

Product Version: UE 4.14
Tags:
more ▼

asked Nov 29 '16 at 08:07 PM in C++ Programming

avatar image

Vertex Soup
288 4 22 16

avatar image victorbarbu May 21 '17 at 08:33 PM

Do you have any progress on this?

avatar image Vertex Soup Jul 06 '17 at 12:10 AM

Not yet, I'm searching still. Will post info if I figure it out.

avatar image Xanadron Sep 20 '18 at 01:55 PM

Hi! Did you sort it out somehow?

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

0 answers: sort voted first
Be the first one to answer this question
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