summaryrefslogtreecommitdiffstats
path: root/Third_Party/at.pimaker.ltcgi/Editor/LTCGI_BakeReset.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Third_Party/at.pimaker.ltcgi/Editor/LTCGI_BakeReset.cs')
-rw-r--r--Third_Party/at.pimaker.ltcgi/Editor/LTCGI_BakeReset.cs60
1 files changed, 0 insertions, 60 deletions
diff --git a/Third_Party/at.pimaker.ltcgi/Editor/LTCGI_BakeReset.cs b/Third_Party/at.pimaker.ltcgi/Editor/LTCGI_BakeReset.cs
deleted file mode 100644
index ad96f32..0000000
--- a/Third_Party/at.pimaker.ltcgi/Editor/LTCGI_BakeReset.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#if UNITY_EDITOR
-using UnityEditor;
-using UnityEngine;
-using UnityEngine.Rendering;
-#endif
-
-namespace pi.LTCGI
-{
- #if UNITY_EDITOR
- // Serialization helper for lightmap baking primitives.
- [ExecuteInEditMode]
- public class LTCGI_BakeReset : MonoBehaviour
- {
- public bool Reenable;
- public Renderer[] DisableRendererComponents;
-
- public bool ResetData;
- public Material[] Materials;
- public StaticEditorFlags Flags;
- public ShadowCastingMode ShadowCastingMode;
-
- public bool ResetLightMesh;
- public Color lightMeshColor;
- public float lightMeshIntensity;
-
- internal void ApplyReset()
- {
- if (Reenable)
- {
- this.gameObject.SetActive(true);
- }
- if (ResetData)
- {
- var rend = this.GetComponent<Renderer>();
- rend.sharedMaterials = Materials;
- rend.shadowCastingMode = ShadowCastingMode;
- GameObjectUtility.SetStaticEditorFlags(this.gameObject, Flags);
- }
-
- #if BAKERY_INCLUDED
- if (ResetLightMesh)
- {
- var lm = this.GetComponent<BakeryLightMesh>();
- if (lm != null)
- {
- lm.color = lightMeshColor;
- lm.intensity = lightMeshIntensity;
- }
- }
- #endif
-
- if (DisableRendererComponents != null)
- {
- foreach (var r in DisableRendererComponents)
- if (r) r.enabled = false;
- }
- }
- }
- #endif
-} \ No newline at end of file