C# Class UIRect.AnchorPoint, LoopScorllViewForNGUI

Afficher le fichier Open project: tinyantstudio/LoopScorllViewForNGUI Class Usage Examples

Méthodes publiques

Свойство Type Description
absolute int
relative float
target Transform

Méthodes publiques

Méthode Description
AnchorPoint ( ) : UnityEngine
AnchorPoint ( float relative ) : UnityEngine
GetSides ( Transform relativeTo ) : Vector3[]

Convenience function that returns the sides the anchored point is anchored to.

Set ( Transform target, float relative, float absolute ) : void

Convenience function that sets the anchor's values.

Set ( float relative, float absolute ) : void

Convenience function that sets the anchor's values.

SetHorizontal ( Transform parent, float localPos ) : void

Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.

SetToNearest ( float abs0, float abs1, float abs2 ) : void

Set the anchor's value to the nearest of the 3 possible choices of (left, center, right) or (bottom, center, top).

SetToNearest ( float rel0, float rel1, float rel2, float abs0, float abs1, float abs2 ) : void

Set the anchor's value given the 3 possible anchor combinations. Chooses the one with the smallest absolute offset.

SetVertical ( Transform parent, float localPos ) : void

Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.

Method Details

AnchorPoint() public méthode

public AnchorPoint ( ) : UnityEngine
Résultat UnityEngine

AnchorPoint() public méthode

public AnchorPoint ( float relative ) : UnityEngine
relative float
Résultat UnityEngine

GetSides() public méthode

Convenience function that returns the sides the anchored point is anchored to.
public GetSides ( Transform relativeTo ) : Vector3[]
relativeTo Transform
Résultat Vector3[]

Set() public méthode

Convenience function that sets the anchor's values.
public Set ( Transform target, float relative, float absolute ) : void
target Transform
relative float
absolute float
Résultat void

Set() public méthode

Convenience function that sets the anchor's values.
public Set ( float relative, float absolute ) : void
relative float
absolute float
Résultat void

SetHorizontal() public méthode

Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.
public SetHorizontal ( Transform parent, float localPos ) : void
parent Transform
localPos float
Résultat void

SetToNearest() public méthode

Set the anchor's value to the nearest of the 3 possible choices of (left, center, right) or (bottom, center, top).
public SetToNearest ( float abs0, float abs1, float abs2 ) : void
abs0 float
abs1 float
abs2 float
Résultat void

SetToNearest() public méthode

Set the anchor's value given the 3 possible anchor combinations. Chooses the one with the smallest absolute offset.
public SetToNearest ( float rel0, float rel1, float rel2, float abs0, float abs1, float abs2 ) : void
rel0 float
rel1 float
rel2 float
abs0 float
abs1 float
abs2 float
Résultat void

SetVertical() public méthode

Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.
public SetVertical ( Transform parent, float localPos ) : void
parent Transform
localPos float
Résultat void

Property Details

absolute public_oe property

public int absolute
Résultat int

relative public_oe property

public float relative
Résultat float

target public_oe property

public Transform target
Résultat Transform