Init

void Init([bool useGUI])

Parameters

useGUI: Whether or not to use cInput's built-in GUI. Defaults to true.

Description

Use this to manually initialize the cInput object.

cInput will attempt to create the cInput object automatically upon first use, but there are some situations which might require you to manually call this method first. Thus it is considered best practice to call Init() at the beginning of your setup script.

Example

// no need to pass in a parameter cInput.Init(); // if you're using the [UI system as of Unity 4.6+](http://docs.unity3d.com/Manual/UISystem.html), you don't need to use cGUI. cInput.Init(false);

results matching ""

    No results matching ""