PolygonCollider2D
Collider2D
PolygonCollider2D

class:/TYPE/UnityEngine.PolygonCollider2D//, can be loaded from an assetbundle using PolygonCollider2D::createfromassetbundle(bundlename,prefabname) /

Parent

Collider2D

Variables
autotiling
System.Boolean autotiling
pathcount
System.Int32 pathcount
points
UnityEngine.Vector2[] points
Functions
createprimitive
System.Void CreatePrimitive(
System.Int32 sides
)

System.Int32 sides-no documentation

Parameters

sides -

Returns

System.Void

createprimitive
System.Void CreatePrimitive(
System.Int32 sides,
UnityEngine.Vector2 scale,
UnityEngine.Vector2 offset
)

System.Int32 sides-no documentation

Parameters
sides
System.Int32

no documentation

scale
UnityEngine.Vector2

no documentation offset -

Returns

System.Void

createprimitive
System.Void CreatePrimitive(
System.Int32 sides,
UnityEngine.Vector2 scale
)

System.Int32 sides-no documentation

Parameters
sides
System.Int32

no documentation scale -

Returns

System.Void

getpath
UnityEngine.Vector2[] GetPath(
System.Int32 index
)

System.Int32 index-no documentation

Parameters

index -

Returns

UnityEngine.Vector2[]

getpath
System.Int32 GetPath(
System.Int32 index,
System.Collections.Generic.List`1[[UnityEngine.Vector2, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]] points
)

System.Int32 index-no documentation

Parameters
index
System.Int32

no documentation System.Collections.Generic.List`1[[UnityEngine.Vector2 - UnityEngine.CoreModule - Version=0.0.0.0 - Culture=neutral - points -

Returns

System.Int32

gettotalpointcount
System.Int32 GetTotalPointCount()
Returns

System.Int32

polygoncollider2d::​create
static UnityEngine.PolygonCollider2D Create ()

Constructor replaces new;

Returns

UnityEngine.PolygonCollider2D

polygoncollider2d::​fromassetbundle
static UnityEngine.PolygonCollider2D CreateFromAssetBundle(
string bundle,
string objectname
)

Constructor for object from a bundle

Parameters
bundle
string

bundle name

objectname
string

object name with extension

Returns

UnityEngine.PolygonCollider2D

setpath
System.Void SetPath(
System.Int32 index,
System.Collections.Generic.List`1[[UnityEngine.Vector2, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]] points
)

System.Int32 index-no documentation

Parameters
index
System.Int32

no documentation System.Collections.Generic.List`1[[UnityEngine.Vector2 - UnityEngine.CoreModule - Version=0.0.0.0 - Culture=neutral - points -

Returns

System.Void

setpath
System.Void SetPath(
System.Int32 index,
UnityEngine.Vector2[] points
)

System.Int32 index-no documentation

Parameters
index
System.Int32

no documentation points -

Returns

System.Void