3using LPBannerPosition = Unity.Services.LevelPlay.LevelPlayBannerPosition;
17 [Tooltip(
"The predefined banner location to use.")]
27 [Tooltip(
"Custom on-screen position used when BannerPosition is Custom.")]
37 ? LPBannerPosition.BottomCenter
38 : @this.BannerPosition
switch
40 BannerPosition.TopLeft => LPBannerPosition.TopLeft,
41 BannerPosition.TopCenter => LPBannerPosition.TopCenter,
42 BannerPosition.TopRight => LPBannerPosition.TopRight,
43 BannerPosition.CenterLeft => LPBannerPosition.CenterLeft,
44 BannerPosition.Center => LPBannerPosition.Center,
45 BannerPosition.CenterRight => LPBannerPosition.CenterRight,
46 BannerPosition.BottomLeft => LPBannerPosition.BottomLeft,
47 BannerPosition.BottomCenter => LPBannerPosition.BottomCenter,
48 BannerPosition.BottomRight => LPBannerPosition.BottomRight,
49 BannerPosition.Custom =>
new LPBannerPosition(@this.CustomPosition),
50 _ =>
throw new ArgumentOutOfRangeException()
87 #region Level Play Bridge
static readonly LevelPlayBannerPosition Center
The banner position at the center of the screen.
static readonly LevelPlayBannerPosition BottomRight
The banner position at the bottom-right corner of the screen.
static readonly LevelPlayBannerPosition BottomLeft
The banner position at the bottom-left corner of the screen.
static readonly LevelPlayBannerPosition TopCenter
The banner position at the top-center of the screen.
static readonly LevelPlayBannerPosition TopRight
The banner position at the top-right corner of the screen.
static readonly LevelPlayBannerPosition CenterLeft
The banner position at the center-left side of the screen.
static readonly LevelPlayBannerPosition BottomCenter
The banner position at the bottom-center of the screen.
LevelPlayBannerPosition(Vector2 position)
Creates a banner position with BannerPosition.Custom using the provided custom screen coordinates.
Vector2 CustomPosition
Custom on-screen position used when BannerPosition is BannerPosition.Custom. The value is passed thro...
BannerPosition BannerPosition
The predefined banner location to use. Set to BannerPosition.Custom to place the banner at CustomPosi...
LevelPlayBannerPosition(BannerPosition position)
Creates a banner position using one of the predefined positions.
LevelPlayBannerPosition()
Creates a banner position defaulting to BannerPosition.BottomCenter.
static readonly LevelPlayBannerPosition TopLeft
The banner position at the top-left corner of the screen.
static readonly LevelPlayBannerPosition CenterRight
The banner position at the center-right side of the screen.
BannerPosition
Predefined banner anchor positions used by LevelPlayBannerPosition.