Modular 3D Text
  • ✉️Contact Support
  • ⭐Read me first
  • Introduction
    • ⚡Namespace
    • ⚡Assembly Definition
    • ⚡Scripting define symbol
    • 3D UI for XR
      • Internal documentation
  • Text
    • Modular 3D Text
      • Script documentation
        • UpdateText
        • MeshPostProcess
        • Internal Documentation
    • Text Updater
    • Fonts
      • Creating fonts
        • Troubleshoot
      • Letter
  • Input
    • Button/Key
      • Button Input System
      • Button Input Processor
    • Mouse/Touch
      • Raycast Selector
      • Raycast Input Processor
    • Troubleshoot
  • Modules
    • Modules
  • UI
    • List
      • Script documentation
    • Button
      • Script documentation
    • Toggle
      • Script documentation
    • Slider
      • Script documentation
        • UpdateValue
        • IncreaseValue
        • DecreaseValue
      • SliderHandle
    • Input Field
      • Script documentation
        • UpdateText
        • ContentType
    • Horizontal Selector
      • Script documentation
  • Layout System
  • Modules
  • Package Importer
  • Utility
    • UI States
    • Asset Settings
  • Version History
Powered by GitBook
On this page
  • Variables
  • Methods
  • Version History
  • v4.0.0 (May 4, 2023)

Was this helpful?

  1. UI
  2. Toggle

Script documentation

Toggle.cs in TinyGiantStudio.Text namespace

If anything except method names starts with a capital letter, it's a property.

Variables

Variable
Type
Description

IsOn

bool

onGraphic

GameObject

offGraphic

GameObject

onEvent

UnityEvent

offEvent

UnityEvent

Methods

Set (bool set)

Sets the isOn state of the toggle according to the bool passed.

ToggleState ()

Switches between on and off.

CallToggleEvent ()

Just calls the event depending on the current state of the Toggle(on/off).

VisualUpdate ()

Just updates the visual depending on the current state of the Toggle(on/off).

ActiveVisualUpdate ()

Changes the graphic to activated.

InactiveVisualUpdate ()

Changes the graphic to inactivate.

Version History

v4.0.0 (May 4, 2023)

Method Toggle renamed to ToggleState

PreviousToggleNextSlider

Last updated 1 year ago

Was this helpful?