C# Class UIAnchor, Hero.Coli

Inheritance: MonoBehaviour
ファイルを表示 Open project: CyberCRI/Hero.Coli Class Usage Examples

Public Properties

Property Type Description
halfPixelOffset bool
panelContainer UIPanel,
relativeOffset Vector2
side Side,
uiCamera Camera
widgetContainer UIWidget,

Public Methods

Method 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 method

public Awake ( ) : void
return void

Start() public method

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

Update() public method

Anchor the object to the appropriate point.
public Update ( ) : void
return 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
return 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
return 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
return Vector2

side public_oe property

Side or corner to anchor to.
public Side, side
return Side,

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,