Class HighlightNearestFace
Move a sphere around the surface of a ProBuilder mesh, changing the vertex color of the nearest face.
Scene setup: Create a Unity Sphere primitive in a new scene, then attach this script to the sphere. Press 'Play'
Inherited Members
Namespace: ProBuilder.Examples
Syntax
public class HighlightNearestFace : MonoBehaviour
Fields
speed
Declaration
public float speed
Field Value
Type | Description |
---|---|
Single |
travel
Declaration
public float travel
Field Value
Type | Description |
---|---|
Single |