Skip to content

GUISkinExtensions

Namespace: SideXP.Core

public static class GUISkinExtensions

Extension functions for GUISkin instances.

Methods

FindStyle(GUISkin, string, GUIStyle)

public static GUIStyle FindStyle(GUISkin skin, string styleName, GUIStyle fallbackStyle)

Finds a style on this GUISkin asset.

Parameters

  • skin: The GUISkin on which you want to find the style.
  • styleName: The name of the style you want to find.
  • fallbackStyle: The default style to use if the named style can't be found in the GUISkin asset.

Returns

Returns the found style, or the given fallback if the named style doesn't exist on the GUISkin asset.