File size: 493 Bytes
3868539 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
using UnityEngine;
public class FacePreview : MonoBehaviour
{
public BoundingBox boundingBox;
public Keypoint[] keypoints;
public void SetActive(bool active)
{
gameObject.SetActive(active);
}
public void SetBoundingBox(bool active, Vector3 position, Vector2 size)
{
boundingBox.Set(active, position, size);
}
public void SetKeypoint(int index, bool active, Vector3 position)
{
keypoints[index].Set(active, position);
}
}
|