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"

Cannot add skeletal mesh

So I got an item system which spawns a blueprint, containing the material and skeletal mesh (Skinned) for an item, and then adds it as a component to the player character on a given socket.

Now currently I have to create a new Blueprint for each item. It's not very maintainable to make game design change for a few hundred items.

How can I do this automatically? Either via blueprint or C++. To just spawn the base class, specify the mesh and material to be used and then attach it to the socket? I have tried everything and I haven't gotten the mesh to show up at all ingame while trying to add it dynamically at runtime.

The whole character is just a single skeletal mesh with various sockets in the different places (Head,Chest,Hands, ...)

Product Version: Not Selected
Tags:
more ▼

asked May 09 '15 at 01:02 PM in Blueprint Scripting

avatar image

Sir Rogers
6 2 4 8

avatar image Narghile May 09 '15 at 01:23 PM

Ok, you may need your stuff in an Struct Array to solve this

This way, you can store the item details, but a reference to the object itself.

Spawn, add to array then reference that array.

Narg

avatar image Sir Rogers May 09 '15 at 02:00 PM

I'm sorry Narg your answer is very abstract and doesn't make sense to me.

I cannot successfully spawn an empty blueprint at runtime and populate it with the right mesh+mat. No matter if I save the mesh+mat in an array or just enter them manually into blueprint.

(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