Class AngleRange
Angle Range defines constraints and list of sprites to be used to render edges of SpriteShape.
Inherited Members
Namespace: UnityEngine.U2D
Syntax
[Serializable]
public class AngleRange : ICloneable
Properties
end
End angle of AngleRange. Angles cannot overlap with others.
Declaration
public float end { get; set; }
Property Value
Type | Description |
---|---|
Single |
order
Render order for this AngleRange.
Declaration
public int order { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
sprites
List of sprites that are used to render the edge. The sprite index of control point can be used to select the one to be used for rendering.
Declaration
public List<Sprite> sprites { get; set; }
Property Value
Type | Description |
---|---|
List<UnityEngine.Sprite> |
start
Start angle of AngleRange.
Declaration
public float start { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
Clone()
Clone object.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
Object | Cloned Angle Range Object. |
Implements
Equals(Object)
Test for Equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | Object to test against. |
Returns
Type | Description |
---|---|
Boolean | True if Equal. |
Overrides
GetHashCode()
Get hash code for this AngleRange.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Hash code as int. |