AddComponent

Extension Method in GameObject

AddComponent<T>(LodInputMode)

AddComponent that is compatible with Crest inputs.

Declaration

public T AddComponent<T>(LodInputMode mode) where T : LodInput

Parameters

mode

The input mode. Not all inputs support all modes. Refer to the UI as to what input supports what mode.

Return

The newly created input component setup with the provided mode.