Class AngleRange
Angle Range defines constraints and list of sprites to be used to render edges of SpriteShape.
Implements
Inherited Members
Namespace: UnityEngine.U2D
Assembly: Unity.2D.SpriteShape.Runtime.dll
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 |
|---|---|
| float |
order
Render order for this AngleRange.
Declaration
public int order { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
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<Sprite> |
start
Start angle of AngleRange.
Declaration
public float start { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
Clone()
Clone object.
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| object | Cloned Angle Range Object. |
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 |
|---|---|
| bool | True if Equal. |
Overrides
GetHashCode()
Get hash code for this AngleRange.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | Hash code as int. |