Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
using Leap.Unity.Apps.Paint6.Drawing;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SimpleTriangleCounterText : MonoBehaviour {
public TextMesh textOutput;
public StrokePolyMeshManager strokePolyMeshManager;
void Update() {
textOutput.text = "Triangles: " + strokePolyMeshManager.addedTriangleCount;
}
}
f6b8e5137This file is pinned to the selected release. Download the original to open it in your design tool.