Class PolygonCollider2D
Inheritance
PolygonCollider2D
Assembly: UnityEngine.dll
Syntax
public sealed class PolygonCollider2D : Collider2D
Properties
autoTiling
Declaration
public bool autoTiling { get; set; }
Property Value
pathCount
Declaration
public int pathCount { get; set; }
Property Value
points
Declaration
public Vector2[] points { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
CreatePrimitive(Int32)
Declaration
[ExcludeFromDocs]
public void CreatePrimitive(int sides)
Parameters
Type |
Name |
Description |
Int32 |
sides |
|
|
Improve this Doc
View Source
CreatePrimitive(Int32, Vector2)
Declaration
[ExcludeFromDocs]
public void CreatePrimitive(int sides, Vector2 scale)
Parameters
|
Improve this Doc
View Source
CreatePrimitive(Int32, Vector2, Vector2)
Declaration
public void CreatePrimitive(int sides, [DefaultValue("Vector2.one")] Vector2 scale, [DefaultValue("Vector2.zero")] Vector2 offset)
Parameters
|
Improve this Doc
View Source
GetPath(Int32)
Declaration
public Vector2[] GetPath(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
GetTotalPointCount()
Declaration
public int GetTotalPointCount()
Returns
|
Improve this Doc
View Source
SetPath(Int32, Vector2[])
Declaration
public void SetPath(int index, Vector2[] points)
Parameters
Extension Methods