Edit

Share via


ButtonIconSet.TryGetSpriteIcon(String, Sprite) Method

Definition

Searches for a sprite for sprite icon by name.

public:
 bool TryGetSpriteIcon(System::String ^ iconName, [Runtime::InteropServices::Out] UnityEngine::Sprite ^ % spriteIcon);
public bool TryGetSpriteIcon (string iconName, out UnityEngine.Sprite spriteIcon);
member this.TryGetSpriteIcon : string * Sprite -> bool
Public Function TryGetSpriteIcon (iconName As String, ByRef spriteIcon As Sprite) As Boolean

Parameters

iconName
String
spriteIcon
UnityEngine.Sprite

Returns

True if sprite icon was found.

Applies to