Input System  v0.1
ISX.InputTemplate.Builder Struct Reference

Build a template programmatically. Primarily for use by template constructors registered with the system. More...

Public Member Functions

ControlBuilder AddControl (string name)
 Add a new control to the template. More...
 

Detailed Description

Build a template programmatically. Primarily for use by template constructors registered with the system.

See also
InputSystem.RegisterTemplateConstructor

Member Function Documentation

◆ AddControl()

ControlBuilder ISX.InputTemplate.Builder.AddControl ( string  name)

Add a new control to the template.

Parameters
nameName or path of the control. If it is a path (e.g. "leftStick/x", then the control either modifies the setup of a child control of another control in the template or adds a new child control to another control in the template. Modifying child control is useful, for example, to alter the state format of controls coming from the base template. Likewise, adding child controls to another control is useful to modify the setup of of the control template being used without having to create and register a custom control template.
Returns
A control builder that permits setting various parameters on the control.
Exceptions
ArgumentExceptionname is null or empty.