Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetComponentIndex()

Gets the index of the component on its parent GameObject.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public int GetComponentIndex()

Returns

Type

Description

intThe component index.