diff --git a/Editor/LODGeneratorHelperEditor.cs b/Editor/LODGeneratorHelperEditor.cs index 555f681..1068f1a 100644 --- a/Editor/LODGeneratorHelperEditor.cs +++ b/Editor/LODGeneratorHelperEditor.cs @@ -610,12 +610,12 @@ where go.transform.IsChildOf(ourTransform) var notChildGameObjects = from go in gameObjects where !go.transform.IsChildOf(ourTransform) -#if UNITY_2018_3 || UNITY_2018_4 || UNITY_2019 +#if UNITY_2018_3 || UNITY_2018_4 || UNITY_2019 || UNITY_2020 && !PrefabUtility.IsPartOfAnyPrefab(go) #endif select go; -#if UNITY_2018_3 || UNITY_2018_4 || UNITY_2019 +#if UNITY_2018_3 || UNITY_2018_4 || UNITY_2019 || UNITY_2020 var prefabGameObjects = from go in gameObjects where !go.transform.IsChildOf(ourTransform) && PrefabUtility.IsPartOfAnyPrefab(go) diff --git a/Runtime/MeshCombiner.cs b/Runtime/MeshCombiner.cs index badc10f..b5653ce 100644 --- a/Runtime/MeshCombiner.cs +++ b/Runtime/MeshCombiner.cs @@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ #endregion -#if UNITY_2017_3 || UNITY_2017_4 || UNITY_2018 || UNITY_2019 +#if UNITY_2017_3 || UNITY_2017_4 || UNITY_2018 || UNITY_2019 || UNITY_2020 #define UNITY_MESH_INDEXFORMAT_SUPPORT #endif diff --git a/Runtime/MeshSimplifier.cs b/Runtime/MeshSimplifier.cs index a921d54..da043e2 100644 --- a/Runtime/MeshSimplifier.cs +++ b/Runtime/MeshSimplifier.cs @@ -37,11 +37,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE //https://github.com/sp4cerat/Fast-Quadric-Mesh-Simplification #endregion -#if UNITY_2018_2 || UNITY_2018_3 || UNITY_2018_4 || UNITY_2019 +#if UNITY_2018_2 || UNITY_2018_3 || UNITY_2018_4 || UNITY_2019 || UNITY_2020 #define UNITY_8UV_SUPPORT #endif -#if UNITY_2017_3 || UNITY_2017_4 || UNITY_2018 || UNITY_2019 +#if UNITY_2017_3 || UNITY_2017_4 || UNITY_2018 || UNITY_2019 || UNITY_2020 #define UNITY_MESH_INDEXFORMAT_SUPPORT #endif diff --git a/Runtime/Utility/MeshUtils.cs b/Runtime/Utility/MeshUtils.cs index 3b9c803..2df867b 100644 --- a/Runtime/Utility/MeshUtils.cs +++ b/Runtime/Utility/MeshUtils.cs @@ -24,11 +24,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ #endregion -#if UNITY_2018_2 || UNITY_2018_3 || UNITY_2018_4 || UNITY_2019 +#if UNITY_2018_2 || UNITY_2018_3 || UNITY_2018_4 || UNITY_2019 || UNITY_2020 #define UNITY_8UV_SUPPORT #endif -#if UNITY_2017_3 || UNITY_2017_4 || UNITY_2018 || UNITY_2019 +#if UNITY_2017_3 || UNITY_2017_4 || UNITY_2018 || UNITY_2019 || UNITY_2020 #define UNITY_MESH_INDEXFORMAT_SUPPORT #endif diff --git a/Tests/Editor/MeshUtilsTest.cs b/Tests/Editor/MeshUtilsTest.cs index 4e44eb2..140ea7b 100644 --- a/Tests/Editor/MeshUtilsTest.cs +++ b/Tests/Editor/MeshUtilsTest.cs @@ -24,7 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ #endregion -#if UNITY_2017_3 || UNITY_2017_4 || UNITY_2018 || UNITY_2019 +#if UNITY_2017_3 || UNITY_2017_4 || UNITY_2018 || UNITY_2019 || UNITY_2020 #define UNITY_MESH_INDEXFORMAT_SUPPORT #endif