Method GetChild
GetChild(RideID, String)
Gets the child transform by name. Searches recursively
Declaration
RideID GetChild(RideID transform, string childName)
Parameters
Type | Name | Description |
---|---|---|
RideID | transform | The transform that is the parent or ancestor of the child |
System.String | childName | The name of the child |
Returns
Type | Description |
---|---|
RideID | The child transform, RideID.Null if it doesn't exist |
GetChild(RideID, Int32)
Gets the child transform at the given index. This works for 1st generation children only
Declaration
RideID GetChild(RideID transform, int childIndex)
Parameters
Type | Name | Description |
---|---|---|
RideID | transform | The transform that is the parent of the child you want |
System.Int32 | childIndex | The zero-based index of the 1st generation of children of the transform. |
Returns
Type | Description |
---|---|
RideID | The child transform, RideID.Null if it doesn't exist |