C# Class Skin2D, UnitySpritesAndBones

Inheritance: MonoBehaviour
Datei anzeigen Open project: Banbury/UnitySpritesAndBones Class Usage Examples

Public Properties

Property Type Description
controlPoints ControlPoints.Point[],
lockBoneWeights bool
points ControlPoints,
referenceMaterial Material
showMeshOutline bool
sprite Sprite

Private Properties

Property Type Description
CalculateVertexColors void
Create void
CreateOrReplaceAsset void
LateUpdate void
OnDrawGizmos void
Start void
Update void

Public Methods

Method Description
CalculateBoneWeights ( Bone, bones ) : void
CalculateBoneWeights ( Bone, bones, bool weightToParent ) : void
CreateControlPoints ( SkinnedMeshRenderer skin ) : void
RecalculateBoneWeights ( ) : void
RemoveControlPoints ( ) : void
ResetControlPointPositions ( ) : void
SaveAsPrefab ( ) : void

Private Methods

Method Description
CalculateVertexColors ( ) : void
Create ( ) : void
CreateOrReplaceAsset ( Mesh mesh, string path ) : void
LateUpdate ( ) : void
OnDrawGizmos ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

CalculateBoneWeights() public method

public CalculateBoneWeights ( Bone, bones ) : void
bones Bone,
return void

CalculateBoneWeights() public method

public CalculateBoneWeights ( Bone, bones, bool weightToParent ) : void
bones Bone,
weightToParent bool
return void

CreateControlPoints() public method

public CreateControlPoints ( SkinnedMeshRenderer skin ) : void
skin UnityEngine.SkinnedMeshRenderer
return void

RecalculateBoneWeights() public method

public RecalculateBoneWeights ( ) : void
return void

RemoveControlPoints() public method

public RemoveControlPoints ( ) : void
return void

ResetControlPointPositions() public method

public ResetControlPointPositions ( ) : void
return void

SaveAsPrefab() public method

public SaveAsPrefab ( ) : void
return void

Property Details

controlPoints public_oe property

public ControlPoints.Point[], controlPoints
return ControlPoints.Point[],

lockBoneWeights public_oe property

public bool lockBoneWeights
return bool

points public_oe property

public ControlPoints, points
return ControlPoints,

referenceMaterial public_oe property

public Material referenceMaterial
return Material

showMeshOutline public_oe static_oe property

public static bool showMeshOutline
return bool

sprite public_oe property

public Sprite sprite
return Sprite