Class LevelBackgroundPosition
Level background image position info
Properties
| Improve this Doc View SourceCropRect
An array of 4 float values describing the cropped sub-rectangle of the displayed
background image. This cropping happens when original is larger than the level bounds.
Array format: [ cropX, cropY, cropWidth, cropHeight ]
Type | Description |
---|---|
System.Single[] |
Scale
An array containing the [scaleX,scaleY]
values of the cropped background image,
depending on bgPos
option.
Type | Description |
---|---|
System.Single[] |
TopLeftPx
An array containing the [x,y]
pixel coordinates of the top-left corner of the
cropped background image, depending on bgPos
option.
Type | Description |
---|---|
System.Int32[] |
UnityCropRect
Type | Description |
---|---|
UnityEngine.Rect | A rect describing the cropped sub-rectangle of the displayed background image. This cropping happens when original is larger than the level bounds. |
UnityScale
Type | Description |
---|---|
UnityEngine.Vector2 | Scale of the cropped background image, depending on |
UnityTopLeftPx
Type | Description |
---|---|
UnityEngine.Vector2Int | Pixel coordinates of the top-left corner of the cropped background image, depending on |