Horje
how to choose a random child in a gameobject unuity Code Example
how to choose a random child in a gameobject unuity
public GameObject YourGameObject;

int randomChildIdx = Math.Random(0, YourGameObject.transform.childCount);
Transform randomChild = YourGameObject.transform.GetChild(randomChildIdx);




Csharp

Related
UnitType parameter revit 2022 Code Example UnitType parameter revit 2022 Code Example
unity create Code Example unity create Code Example
unity get component in parent Code Example unity get component in parent Code Example
string extentions not working Code Example string extentions not working Code Example
c# list add and return Code Example c# list add and return Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9