Announcement

Collapse
No announcement yet.

Spawn Actors from ActorsArray with shuffle. Weird behavior.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Problem solved: i shouldnt trying to shuffle array on forloop, but just once on eventbeginplay

    Leave a comment:


  • Spawn Actors from ActorsArray with shuffle. Weird behavior.

    Hi guys

    Im trying to spawn some actors from actrors array. I have 15 actors. All actors have their unique number from 1 to 15. I need to spawn all actor only once, without duplicates, so i think what shuffle will work.
    If i watch shuffled actors array everything looks fine but in viewport i see many duplicates.

    On screenshoot we can see that 0 and 1 actors are unique, but in viewport BP spawn 2 same actors.

    What im doing wrong?
    Attached Files
    Last edited by Alexander.L; 07-03-2018, 11:45 AM.
Working...
X