Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BaseBoolField

A BaseBoolField is a clickable element that represents a boolean value.
Read time 7 minutesLast updated 2 days ago

Definition

public abstract class BaseBoolField : BaseField<bool>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<bool>, IMixedValueSupport

Constructors

Constructor

Description

BaseBoolField(System.String)Creates a BaseBoolField with a Label and a default manipulator.

Properties

Property

Description

textOptional text that appears after the BaseBoolField.
toggleOnLabelClickWhether to activate the toggle when the user clicks the label.

Methods

Method

Description

InitLabelInitializes the Label element whenever the BaseBoolField.text property changes.
SetValueWithoutNotifySets the value of the BaseBoolField, but does not notify the rest of the hierarchy of the change.
ToggleValueInverts the value property.

Inheritance

Inherited Members