GameObject.GetComponentIndex

Switch to Manual

Declaration

public int GetComponentIndex(Component component);

Parameters

component The component to search for.

Returns

int The component index. Otherwise, returns /-1/.

Description

Gets the index of the component specified on the specified GameObject.


Did you find this page useful? Please give it a rating: