SDKs code references for Unity
Easily embed Xsolla services with this ready-to-use libraries for Unity applications and games
Xsolla.Core.WebGlAppearance Class Reference

Public Attributes

bool? iframeOnly
 Open payment UI in iframe on all devices.
 
string widgetWidth
 Width of the widget. Default is 740px.
 
string widgetHeight
 Height of the widget. Default is 760px.
 
int? zIndex
 Controls the vertical stacking order (z-index). Default is 1000.
 
float? overlayOpacity
 Opacity of the overlay (range: 0 to 1). Default is 0.6.
 
string overlayBackgroundColor
 Overlay background color in hex format. Default is #000000.
 
bool? isModal
 If true, the widget frame can't be closed. Default is false.
 
bool? closeByClickOverlay
 If true, clicking on the overlay will close the widget. Default is true.
 
bool? closeByKeyboardEscape
 If true, pressing the ESC key closes the widget. Default is true.
 
string contentBackgroundColor
 Background color of the widget in hex format. Default is '#ffffff'.
 
string contentMargin
 Margin around the widget frame. Default is '10px'.
 
string spinnerType
 Type of animated loading spinner. Options: 'xsolla', 'round', 'none', or 'custom'. Default is 'round'.
 
string spinnerColor
 Spinner color in hex format. Default is '#cccccc'.
 
string spinnerUrl
 URL of the custom spinner. Default is null.
 
float? spinnerRotationPeriod
 Rotation period of the custom spinner in seconds. Default is 0.
 

The documentation for this class was generated from the following file: