summaryrefslogtreecommitdiff
path: root/VRCSDK3Worlds/Assets/Bakery/BakerySector.cs
blob: 40f53329cfc38dabfd88232a1772632e8f6585a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BakerySector : MonoBehaviour
{
    public enum CaptureMode
    {
        None = -1,
        CaptureInPlace = 0,
        CaptureToAsset = 1,
        LoadCaptured = 2
    }

    public CaptureMode captureMode = CaptureMode.CaptureInPlace;
    public string captureAssetName = "";
    public BakerySectorCapture captureAsset;
    public bool allowUVPaddingAdjustment = false;
    public List<Transform> tforms = new List<Transform>();
    public List<Transform> cpoints = new List<Transform>();

#if UNITY_EDITOR
    public List<Renderer> previewDisabledRenderers;
    public List<GameObject> previewTempObjects;
    public bool previewEnabled = false;
#endif

    void OnDrawGizmosSelected()
    {
        Gizmos.color = Color.green;
        for(int i=0; i<cpoints.Count; i++)
        {
            if (cpoints[i] != null) Gizmos.DrawWireSphere(cpoints[i].position, 1.0f);
        }
    }
}