文档

Unity Engine


User Manual

Script Reference

Unity Engine


iconOnlyUssClassName

The USS class name for Button elements with an icon only, no text.
阅读时间1 分钟最后更新于 5 天前

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.