Question by
manubamon · Jun 08, 2019 at 11:33 PM ·
arrayrandom.rangeprocedural generationarray of gameobjectsprocedural-generation
Is it possible to choose some prefabs from an array in a procedural way? getting a seed to recreate the selection?.
I made a system tahat choose 8 prefabs from an array (all of them are diferent) using random.range, but I need to recreate a selection ussing a seed. Pls help :C
Comment
Answer by sohoperry · Jun 09, 2019 at 12:29 AM
You could use the regular C# Random class or the one in Unity's new Mathematics library.
Your answer
Follow this Question
Related Questions
Storing a Gameobject from array into a Gameobject variable giving NullReferenceException 3 Answers
Accessing the array of a null item / Moving items in array 0 Answers
Instantiate prefabs at different position 2 Answers
Check if transform.position matches position of any object in a given array 1 Answer
How can i use transform.position to a gameobject in an array? 1 Answer