C# Class SkinMesh, UnitySpritesAndBones

Inheritance: EditorWindow
Mostrar archivo Open project: Banbury/UnitySpritesAndBones Class Usage Examples

Public Properties

Property Type Description
combineMesh Mesh
customLoadMesh Mesh
handleColor Color
handleColorFirst Color
handleColorLast Color
handleScale float
mesh Mesh
points Vector2[]
polyColor Color

Public Methods

Method Description
AddMidPoint ( ) : void
AddPoint ( Event e ) : void
CombineMesh ( ) : void
CreateMeshFromPoints ( bool combine ) : Mesh
IsBadTriangle ( Poly2Tri.DelaunayTriangle triangle ) : bool
OnDestroy ( ) : void
OnGUI ( ) : void
OnSceneGUI ( SceneView sceneView ) : void
RemovePoint ( ) : void
RemovePoint ( int index ) : void
SaveMesh ( ) : void
SubdivideMesh ( int divisions ) : void
UpdateMesh ( ) : void
genUV ( Vector3 vertices ) : Vector2[]

Private Methods

Method Description
CreateMesh ( ) : void
CreatePolygon ( ) : void
GetBounds ( IEnumerable poly ) : Rect
GetHandleSize ( Vector3 pos, float size ) : float
LoadMesh ( Mesh loadMesh ) : void
PointInPoly ( Vector2 p, IList poly ) : bool
ShowSkinMeshEditor ( ) : void

Method Details

AddMidPoint() public method

public AddMidPoint ( ) : void
return void

AddPoint() public method

public AddPoint ( Event e ) : void
e Event
return void

CombineMesh() public method

public CombineMesh ( ) : void
return void

CreateMeshFromPoints() public method

public CreateMeshFromPoints ( bool combine ) : Mesh
combine bool
return Mesh

IsBadTriangle() public method

public IsBadTriangle ( Poly2Tri.DelaunayTriangle triangle ) : bool
triangle Poly2Tri.DelaunayTriangle
return bool

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

OnSceneGUI() public method

public OnSceneGUI ( SceneView sceneView ) : void
sceneView SceneView
return void

RemovePoint() public method

public RemovePoint ( ) : void
return void

RemovePoint() public method

public RemovePoint ( int index ) : void
index int
return void

SaveMesh() public method

public SaveMesh ( ) : void
return void

SubdivideMesh() public method

public SubdivideMesh ( int divisions ) : void
divisions int
return void

UpdateMesh() public method

public UpdateMesh ( ) : void
return void

genUV() public method

public genUV ( Vector3 vertices ) : Vector2[]
vertices Vector3
return Vector2[]

Property Details

combineMesh public_oe property

public Mesh combineMesh
return Mesh

customLoadMesh public_oe property

public Mesh customLoadMesh
return Mesh

handleColor public_oe property

public Color handleColor
return Color

handleColorFirst public_oe property

public Color handleColorFirst
return Color

handleColorLast public_oe property

public Color handleColorLast
return Color

handleScale public_oe property

public float handleScale
return float

mesh public_oe property

public Mesh mesh
return Mesh

points public_oe property

public Vector2[] points
return Vector2[]

polyColor public_oe property

public Color polyColor
return Color