PanelBaseSetCustomSkin Method |
Override the default theme textures and set a custom skin for this specific button.
Namespace:
GeonBit.UI.Entities
Assembly:
GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public void SetCustomSkin(
Texture2D customTexture,
Nullable<Vector2> frameWidth = null
)
Parameters
- customTexture
- Type: Texture2D
Texture to use for default state. - frameWidth (Optional)
- Type: SystemNullableVector2
The width of the custom texture's frame, in percents of texture size.
Remarks You must provide all state textures when overriding button skin.
See Also