Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


iconOnlyUssClassName

The USS class name for Button elements with an icon only, no text.
Read time 1 minuteLast updated 9 days ago

Definition

public static readonly string iconOnlyUssClassName

Remarks

Unity adds this USS class to an instance of the Button element if the instance's Button.iconImage property contains a valid Texture and no text is set. Any styling applied to this class affects every button with an icon located beside, or below the stylesheet in the visual tree.