Class BeatmapAreaAdjuster
Adds an optional position offset to the 4:3 area of the Beatmap,
especially meant for use in portrait mode (i.e. mobile).
Inheritance
BeatmapAreaAdjuster
Assembly: MouseDance.Runtime.dll
Syntax
public class BeatmapAreaAdjuster : MonoBehaviour
Fields
Declaration
[SerializeField]
[Tooltip("Used to obtain the screen size.")]
protected RectTransform _canvasTransform
Field Value
_screenAdjust
Declaration
[SerializeField]
[Tooltip("The Beatmap Area that we will adjust.")]
protected RectTransform _screenAdjust
Field Value
_screenPosLandscape
Declaration
[SerializeField]
[Tooltip("Offset to the Beatmap Area's position when the screen is in landscape. Leave at (0,0) if you don't want any offset.")]
protected Vector2 _screenPosLandscape
Field Value
_screenPosPortrait
Declaration
[SerializeField]
[Tooltip("Offset to the Beatmap Area's position when the screen is in portrait and the aspect ratio is something else (one that isn't specified directly here). Leave at (0,0) if you don't want any offset.")]
protected Vector2 _screenPosPortrait
Field Value
_screenPosPortrait10by16
Declaration
[SerializeField]
[Tooltip("Offset to the Beatmap Area's position when the screen is in portrait and the aspect ratio detected is 10:16. Leave at (0,0) if you don't want any offset.")]
[InspectorName("Screen Pos Portrait 10:16")]
protected Vector2 _screenPosPortrait10by16
Field Value
_screenPosPortrait2by3
Declaration
[SerializeField]
[Tooltip("Offset to the Beatmap Area's position when the screen is in portrait and the aspect ratio detected is 2:3. Leave at (0,0) if you don't want any offset.")]
[InspectorName("Screen Pos Portrait 2:3")]
protected Vector2 _screenPosPortrait2by3
Field Value
Methods
Declaration
[ContextMenu("Adjust")]
protected virtual void OnRectTransformDimensionsChange()
Extension Methods