C# Class PrettyPoly.PrettyPoly

Inheritance: UnityEngine.MonoBehaviour
Mostra file Open project: ShreveportArcade/PrettyPoly Class Usage Examples

Public Properties

Property Type Description
addCollider bool
closed bool
curveType CurveType
meshLayers PrettyPoly.PrettyPolyMeshLayer[]
objectLayers PrettyPoly.PrettyPolyObjectLayer[]
points PrettyPoly.PrettyPolyPoint[]
solid bool
sortingOrder int

Public Methods

Method Description
AddCollider ( PrettyPoly.PrettyPolyPoint pts ) : void
GetCatmullRom ( ) : PrettyPoly.PrettyPolyPoint[]
GetClosestPoint ( Vector3 point ) : PrettyPoly.PrettyPolyPoint
GetClosestSegment ( Vector3 point ) : int
GetCubicBezier ( ) : PrettyPoly.PrettyPolyPoint[]
GetCurve ( ) : PrettyPoly.PrettyPolyPoint[]
OnCollisionEnter2D ( Collision2D collision ) : void
UpdateMaterials ( ) : void
UpdateRenderer ( ) : void

Private Methods

Method Description
UpdateMesh ( ) : void
UpdateObjects ( ) : void

Method Details

AddCollider() public method

public AddCollider ( PrettyPoly.PrettyPolyPoint pts ) : void
pts PrettyPoly.PrettyPolyPoint
return void

GetCatmullRom() public method

public GetCatmullRom ( ) : PrettyPoly.PrettyPolyPoint[]
return PrettyPoly.PrettyPolyPoint[]

GetClosestPoint() public method

public GetClosestPoint ( Vector3 point ) : PrettyPoly.PrettyPolyPoint
point UnityEngine.Vector3
return PrettyPoly.PrettyPolyPoint

GetClosestSegment() public method

public GetClosestSegment ( Vector3 point ) : int
point UnityEngine.Vector3
return int

GetCubicBezier() public method

public GetCubicBezier ( ) : PrettyPoly.PrettyPolyPoint[]
return PrettyPoly.PrettyPolyPoint[]

GetCurve() public method

public GetCurve ( ) : PrettyPoly.PrettyPolyPoint[]
return PrettyPoly.PrettyPolyPoint[]

OnCollisionEnter2D() public method

public OnCollisionEnter2D ( Collision2D collision ) : void
collision UnityEngine.Collision2D
return void

UpdateMaterials() public method

public UpdateMaterials ( ) : void
return void

UpdateRenderer() public method

public UpdateRenderer ( ) : void
return void

Property Details

addCollider public_oe property

public bool addCollider
return bool

closed public_oe property

public bool closed
return bool

curveType public_oe property

public CurveType curveType
return CurveType

meshLayers public_oe property

public PrettyPolyMeshLayer[],PrettyPoly meshLayers
return PrettyPoly.PrettyPolyMeshLayer[]

objectLayers public_oe property

public PrettyPolyObjectLayer[],PrettyPoly objectLayers
return PrettyPoly.PrettyPolyObjectLayer[]

points public_oe property

public PrettyPolyPoint[],PrettyPoly points
return PrettyPoly.PrettyPolyPoint[]

solid public_oe property

public bool solid
return bool

sortingOrder public_oe property

public int sortingOrder
return int