Quantcast
Channel: Answers for "Random Positions without Repeating"
Browsing all 5 articles
Browse latest View live

Answer by Eno Khaon

One possible solution would be to use a List for the positions to place them. [http://answers.unity3d.com/questions/284054/lists-c.html][1] You can populate the list when ready to use it, then remove...

View Article



Answer by fafase

[SerializeField] private int range = 20; // Hom many items you want, will show in Inspector Listlist = new List(); void Start() { FillList(); } void FillList() { for(int i = 0; i

View Article

Answer by Eno-Khaon

One possible solution would be to use a List for the positions to place them. [http://answers.unity3d.com/questions/284054/lists-c.html][1] You can populate the list when ready to use it, then remove...

View Article

Answer by fafase

[SerializeField] private int range = 20; // Hom many items you want, will show in Inspector Listlist = new List(); void Start() { FillList(); } void FillList() { for(int i = 0; i

View Article

Answer by Maynk

Don't Take An Effort, Do Easier in Unity C# //Random.Range Position But Not Repeat { public GameObject spawnEnmy; public List spnPosns = new List(); //Queue spnPnts = new Queue(); float spnIn, spwnOut;...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images