編輯

共用方式為


ButtonConfigHelper.SetCharIcon(UInt32, Object) Method

Definition

Sets the character for the button. This automatically sets the button icon style to Char.

public void SetCharIcon (uint newIconChar, UnityEngine.Object newIconCharFont = default);
member this.SetCharIcon : uint32 * UnityEngine.Object -> unit
Public Sub SetCharIcon (newIconChar As UInteger, Optional newIconCharFont As Object = Nothing)

Parameters

newIconChar
UInt32

Unicode string for new icon character.

newIconCharFont
UnityEngine.Object

Optional TMPro font asset. If null, the existing font asset will be used.

Applies to