Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

DefaultControls.CreateToggle

public static GameObject CreateToggle(Resources resources);

Parameters

resources Object with resources to use.

Returns

GameObject The root GameObject of the created element.

Description

Create a toggle.

Note: See Resources for details about the argument.