index | The component index. |
Component
A reference to a component at an index. Otherwise, returns null
.
Gets a reference to a component at a specific index on the specified GameObject.
This method throws an exception if index is out of bounds. Refer to GameObject.GetComponentCount for more information.
index | The component index. |
T
A reference to a component of the type T
at an index. Otherwise, returns null
.
Gets a reference to a component of type T
at a specific index on the specified GameObject.
This method throws an exception if index is out of bounds. Refer to GameObject.GetComponentCount for more information.