Method GetComponent
GetComponent(uint, ComponentType, bool)
Returns a component on an occurrence
Declaration
[HandleProcessCorruptedStateExceptions]
public uint GetComponent(uint occurrence, ComponentType componentType, bool followPrototypes = true)
Parameters
| Type | Name | Description | 
|---|---|---|
| uint | occurrence | The occurrence  | 
    
| ComponentType | componentType | Type of the component  | 
    
| bool | followPrototypes | If true and if the component is not set on the occurrence, try to find it on its prototyping chain  | 
    
Returns
| Type | Description | 
|---|---|
| uint |