C# Class UIAnchor, Hero.Coli

Inheritance: MonoBehaviour
Afficher le fichier Open project: CyberCRI/Hero.Coli Class Usage Examples

Méthodes publiques

Свойство Type Description
halfPixelOffset bool
panelContainer UIPanel,
relativeOffset Vector2
side Side,
uiCamera Camera
widgetContainer UIWidget,

Méthodes publiques

Méthode Description
Awake ( ) : void
Start ( ) : void

Automatically find the camera responsible for drawing the widgets under this object.

Update ( ) : void

Anchor the object to the appropriate point.

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

Start() public méthode

Automatically find the camera responsible for drawing the widgets under this object.
public Start ( ) : void
Résultat void

Update() public méthode

Anchor the object to the appropriate point.
public Update ( ) : void
Résultat void

Property Details

halfPixelOffset public_oe property

Whether a half-pixel offset will be applied on windows machines. Most of the time you'll want to leave this as 'true'. This value is only used if the widget and panel containers were not specified.
public bool halfPixelOffset
Résultat bool

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
Résultat UIPanel,

relativeOffset public_oe property

Relative offset value, if any. For example "0.25" with 'side' set to Left, means 25% from the left side.
public Vector2 relativeOffset
Résultat Vector2

side public_oe property

Side or corner to anchor to.
public Side, side
Résultat Side,

uiCamera public_oe property

Camera used to determine the anchor bounds. Set automatically if none was specified.
public Camera uiCamera
Résultat 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
Résultat UIWidget,