Show / Hide Table of Contents

Class PolygonCollider2D

Inheritance
Object
Object
Component
Behaviour
Collider2D
PolygonCollider2D
Inherited Members
Collider2D.density
Collider2D.isTrigger
Collider2D.usedByEffector
Collider2D.usedByComposite
Collider2D.composite
Collider2D.offset
Collider2D.attachedRigidbody
Collider2D.shapeCount
Collider2D.bounds
Collider2D.sharedMaterial
Collider2D.friction
Collider2D.bounciness
Collider2D.IsTouching(Collider2D)
Collider2D.IsTouching(Collider2D, ContactFilter2D)
Collider2D.IsTouching(ContactFilter2D)
Collider2D.IsTouchingLayers()
Collider2D.IsTouchingLayers(Int32)
Collider2D.OverlapPoint(Vector2)
Collider2D.Distance(Collider2D)
Collider2D.OverlapCollider(ContactFilter2D, Collider2D[])
Collider2D.GetContacts(ContactPoint2D[])
Collider2D.GetContacts(ContactFilter2D, ContactPoint2D[])
Collider2D.GetContacts(Collider2D[])
Collider2D.GetContacts(ContactFilter2D, Collider2D[])
Collider2D.Cast(Vector2, RaycastHit2D[])
Collider2D.Cast(Vector2, RaycastHit2D[], Single)
Collider2D.Cast(Vector2, RaycastHit2D[], Single, Boolean)
Collider2D.Cast(Vector2, ContactFilter2D, RaycastHit2D[])
Collider2D.Cast(Vector2, ContactFilter2D, RaycastHit2D[], Single)
Collider2D.Cast(Vector2, ContactFilter2D, RaycastHit2D[], Single, Boolean)
Collider2D.Raycast(Vector2, RaycastHit2D[])
Collider2D.Raycast(Vector2, RaycastHit2D[], Single)
Collider2D.Raycast(Vector2, RaycastHit2D[], Single, Int32)
Collider2D.Raycast(Vector2, RaycastHit2D[], Single, Int32, Single)
Collider2D.Raycast(Vector2, RaycastHit2D[], Single, Int32, Single, Single)
Collider2D.Raycast(Vector2, ContactFilter2D, RaycastHit2D[])
Collider2D.Raycast(Vector2, ContactFilter2D, RaycastHit2D[], Single)
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.transform
Component.gameObject
Component.GetComponent(Type)
Component.GetComponent<T>()
Component.GetComponent(String)
Component.GetComponentInChildren(Type, Boolean)
Component.GetComponentInChildren(Type)
Component.GetComponentInChildren<T>(Boolean)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren(Type, Boolean)
Component.GetComponentsInChildren(Type)
Component.GetComponentsInChildren<T>(Boolean)
Component.GetComponentsInChildren<T>(Boolean, List<T>)
Component.GetComponentsInChildren<T>()
Component.GetComponentsInChildren<T>(List<T>)
Component.GetComponentInParent(Type)
Component.GetComponentInParent<T>()
Component.GetComponentsInParent(Type, Boolean)
Component.GetComponentsInParent(Type)
Component.GetComponentsInParent<T>(Boolean)
Component.GetComponentsInParent<T>(Boolean, List<T>)
Component.GetComponentsInParent<T>()
Component.GetComponents(Type)
Component.GetComponents(Type, List<Component>)
Component.GetComponents<T>(List<T>)
Component.tag
Component.GetComponents<T>()
Component.CompareTag(String)
Component.SendMessageUpwards(String, Object, SendMessageOptions)
Component.SendMessageUpwards(String, Object)
Component.SendMessageUpwards(String)
Component.SendMessageUpwards(String, SendMessageOptions)
Component.SendMessage(String, Object)
Component.SendMessage(String)
Component.SendMessage(String, Object, SendMessageOptions)
Component.SendMessage(String, SendMessageOptions)
Component.BroadcastMessage(String, Object, SendMessageOptions)
Component.BroadcastMessage(String, Object)
Component.BroadcastMessage(String)
Component.BroadcastMessage(String, SendMessageOptions)
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public sealed class PolygonCollider2D : Collider2D

Properties

autoTiling

Declaration
public bool autoTiling { get; set; }
Property Value
Type Description
Boolean

pathCount

Declaration
public int pathCount { get; set; }
Property Value
Type Description
Int32

points

Declaration
public Vector2[] points { get; set; }
Property Value
Type Description
Vector2[]

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
Type Name Description
Int32 sides
Vector2 scale
| 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
Type Name Description
Int32 sides
Vector2 scale
Vector2 offset
| Improve this Doc View Source

GetPath(Int32)

Declaration
public Vector2[] GetPath(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
Vector2[]

GetTotalPointCount()

Declaration
public int GetTotalPointCount()
Returns
Type Description
Int32
| Improve this Doc View Source

SetPath(Int32, Vector2[])

Declaration
public void SetPath(int index, Vector2[] points)
Parameters
Type Name Description
Int32 index
Vector2[] points

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX