Scripting API

Foldout

class in UnityEngine.UIElements · UnityEngine.UIElementsModule · inherits from BindableElement

13 of 13 of Unity's membersUnity's documentation
In Tassix

A toggle that shows or hides its content: children go into the content container, which hides while the value is false. The foldout sends its own ChangeEvent (the toggle's stops at it), and its class says how many foldouts it's nested in.

Constructors 1

Fields 9

static readonly string checkmarkUssClassName
static readonly string contentUssClassName
static readonly string inputUssClassName
static readonly BindingId textProperty
static readonly string textUssClassName
static readonly BindingId toggleOnLabelClickProperty
static readonly string toggleUssClassName
static readonly string ussClassName
static readonly BindingId valueProperty

Properties 4

VisualElement contentContainer { get; }
string text { get; set; }
bool toggleOnLabelClick { get; set; }
bool value { get; set; }

Methods 1

void SetValueWithoutNotify(bool newValue)

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.