Build a template programmatically. Primarily for use by template constructors registered with the system.
More...
Build a template programmatically. Primarily for use by template constructors registered with the system.
- See also
- InputSystem.RegisterTemplateConstructor
◆ AddControl()
| ControlBuilder ISX.InputTemplate.Builder.AddControl |
( |
string |
name | ) |
|
Add a new control to the template.
- Parameters
-
| name | Name 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
-
| ArgumentException | name is null or empty. |