Scripting API

Button

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

6 of 10 of Unity's membersUnity's documentation

Constructors 1

Button()
Button(Action? clickEvent)
Button(Background iconImage, Action? clickEvent = null)

Fields 1

static readonly string ussClassName

Properties 2

Clickable? clickable { get; set; }
Background iconImage { get; set; }

Events 1

event Action clicked

Not in Tassix yet 4

DoMeasure iconOnlyUssClassName iconUssClassName imageUSSClassName

Checked against Unity

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