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. 

Is it possible to attach static mesh instance?

I would like to attach each instance of Instanced Static Mesh Component to different objects/sockets to make it follow their transform individually. Is it possible? I can attach the main component, but then all the instances follow the same object.

Product Version: UE 4.10
Tags:
more ▼

asked Feb 19 '16 at 05:09 PM in Blueprint Scripting

avatar image

Slavq
2k 156 153 207

avatar image Slavq Feb 22 '16 at 07:52 PM

I've thought about updating instance transform every tick with socket's transform but... I guess it would be worse in terms of performance?

avatar image FakePlasticTree Nov 29 '16 at 08:10 PM

Any solutions to this question? I've been trying to figure this out as well. Every time I use the AttachToComponent node, unreal crashes.

avatar image TheDarkRider Dec 14 '16 at 10:27 AM

I would like to know this aswell...

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

2 answers: sort voted first

I've learned that it's not possible, because instanced static mesh is treated as one solid mesh when drawing (that's why we get good performance with many instances) - and after every instance transform change, it needs to redraw a whole mesh (with all instances) completely.

So it's not possible to attach a single instance. We could create some function to update instance transform very often to match the 'atached' object, but it would not be performance friendly and not really convenient.

more ▼

answered Dec 14 '16 at 12:28 PM

avatar image

Slavq
2k 156 153 207

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

I found a work around for this. At least for my purposes, which was to create a tunnel or anything that runs in a straight line. I just added a spline mesh component and then attached to that and it works like a charm.

more ▼

answered Dec 14 '16 at 04:42 PM

avatar image

FakePlasticTree
6 1 2 1

avatar image buzNa174 Aug 19 '17 at 11:51 AM

Hi, could you elaborate more about your solution. I have a similar situation

(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