C# Class UIStretch, Prototype

Inheritance: MonoBehaviour
Exibir arquivo Open project: Lifespark/Prototype Class Usage Examples

Public Properties

Property Type Description
initialSize Vector2
panelContainer UIPanel
relativeSize Vector2
runOnlyOnce bool
style Style
uiCamera Camera
widgetContainer UIWidget

Public Methods

Method Description
Awake ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

initialSize public_oe property

The size that the item/image should start out initially. Used for FillKeepingRatio, and FitInternalKeepingRatio. Contributed by Dylan Ryan.
public Vector2 initialSize
return Vector2

panelContainer public_oe property

Panel used to determine the container's bounds. Overwrites the widget-based anchoring if the value was specified.
public UIPanel panelContainer
return UIPanel

relativeSize public_oe property

Relative-to-target size.
public Vector2 relativeSize
return Vector2

runOnlyOnce public_oe property

Whether the operation will occur only once and the script will then be disabled.
public bool runOnlyOnce
return bool

style public_oe property

Stretching style.
public Style style
return Style

uiCamera public_oe property

Camera used to determine the anchor bounds. Set automatically if none was specified.
public Camera uiCamera
return Camera

widgetContainer public_oe property

Widget used to determine the container's bounds. Overwrites the camera-based anchoring if the value was specified.
public UIWidget widgetContainer
return UIWidget