summaryrefslogtreecommitdiff
path: root/VRCSDK3Worlds/Assets/Bakery/BakerySector.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--VRCSDK3Worlds/Assets/Bakery/BakerySector.cs36
-rw-r--r--VRCSDK3Worlds/Assets/Bakery/BakerySector.cs.meta12
2 files changed, 48 insertions, 0 deletions
diff --git a/VRCSDK3Worlds/Assets/Bakery/BakerySector.cs b/VRCSDK3Worlds/Assets/Bakery/BakerySector.cs
new file mode 100644
index 00000000..40f53329
--- /dev/null
+++ b/VRCSDK3Worlds/Assets/Bakery/BakerySector.cs
@@ -0,0 +1,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);
+ }
+ }
+}
diff --git a/VRCSDK3Worlds/Assets/Bakery/BakerySector.cs.meta b/VRCSDK3Worlds/Assets/Bakery/BakerySector.cs.meta
new file mode 100644
index 00000000..0cd1dcf7
--- /dev/null
+++ b/VRCSDK3Worlds/Assets/Bakery/BakerySector.cs.meta
@@ -0,0 +1,12 @@
+fileFormatVersion: 2
+guid: d10ab396b89a06942afcc1005cd4e1f2
+timeCreated: 1589618132
+licenseType: Store
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant: