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"

HISM - Instance Static Mesh Skip Once Before Initialize?


I have a blueprint that spawns random actors referencing the location of arrow components inside 'BP_Tile'.

The system works fine using actor components as child blueprints, however, In order to improve the performance of the game, I have decided to use the Hierarchical Instance Static Mesh component to reduce the draw calls.

Testing using the construction Script the instance mesh seems to work fine, but when I play the game, I note that the indicies were not called when 'BP_Tile' was initialized for the first time,and only spawming after the first 'BP_Tile' was spawmend.

I have placed the arrows into one array and do a for each loop on the index of each, to spawn on all locations randomly indicies at the same time using a world location.

alt textalt text alt text If anyone have an insight how I could go around by summoning randomly instances referencing a component world transform would be much appreciated :)

Spawning when using Spawn Actor Component alt text

Spawning when using Add Instance alt text

Thank you in advance.

Product Version: UE 4.19
1.png (159.5 kB)
2.png (200.5 kB)
3.png (151.2 kB)
actors.jpg (394.3 kB)
indicies.jpg (223.2 kB)
more ▼

asked Sep 21 '18 at 11:16 PM in Blueprint Scripting

avatar image

30 2 5 5

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

1 answer: sort voted first

Fiddling a bit more I noticed that what I was doing wrong. I changed to Add Instance World Space referencing world location from the arrows and everything worked fine

alt text

done.png (148.9 kB)
more ▼

answered Sep 22 '18 at 04:41 PM

avatar image

30 2 5 5

(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