At the beginning of the scene, i create a map of “Tile”. After that i want to pick randomly 5 “Tile” that is not linked to the “Dummy” to spawn “Dummy” on it and link it.
If i have 25 “Tile”, i expect it will pick all the “Tile” that is not linked to “Dummy”, pick randomly 1 “Tile” from them then spawn “Dummy” and then link them.
However, when i run it, it only spawns once. I tried multiple way to debug, it looks like my assumption was wrong. The inverted take into account linked objects doesn’t return “Tile” that is not linked to “Dummy”.
So i want to know what is wrong with my code, how the inverted take into account linked objects works and if possible, how to solve my problem.
Thank you for your time!