Show / Hide Table of Contents

Class LevelBackgroundPosition

Level background image position info

Properties

| Improve this Doc View Source

CropRect

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[]
| Improve this Doc View Source

Scale

An array containing the [scaleX,scaleY] values of the cropped background image, depending on bgPos option.

Type Description
System.Single[]
| Improve this Doc View Source

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[]
| Improve this Doc View Source

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.

| Improve this Doc View Source

UnityScale

Type Description
UnityEngine.Vector2

Scale of the cropped background image, depending on bgPos option.

| Improve this Doc View Source

UnityTopLeftPx

Type Description
UnityEngine.Vector2Int

Pixel coordinates of the top-left corner of the cropped background image, depending on bgPos option.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX