PolyFingerΒΆ

The PolyFinger script is used with the PolyHand prefabs. You can change the shapes and colors of the fingers by setting the PolyFinger properties and material in the Unity Inspector.

unity/../../../images/unity/Unity_PolyFingerProps.png
class PolyFinger

Draws the bones of the finger as a polygonal tube.

Public Functions

override void InitFinger()

Creates the finger mesh.

override void UpdateFinger()

Updates the mesh.

Public Members

int sides

The number of sides for finger tube.

bool smoothNormals

Whether to smooth the mesh normals, providing a smoother appearance.

float[] widths

An array containing the width of the finger at each joint.