Skip to content

Commit

Permalink
change versions where we watch for render pipeline changes to 2020.2 …
Browse files Browse the repository at this point in the history
…- 2020.3
  • Loading branch information
hybridherbst committed May 6, 2023
1 parent fff8d7c commit d555f82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions UnityGLTF/Assets/UnityGLTF/Editor/Scripts/GLTFImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ public override void OnImportAsset(AssetImportContext ctx)
var uniqueNames = new List<string>() { "main asset" };
EnsureShadersAreLoaded();

#if UNITY_2020_2_OR_NEWER
#if UNITY_2020_2_OR_NEWER && !UNITY_2021_3_OR_NEWER
// We don't need this custom dependency in 2021.3 and later, because there we always use ShaderGraph.
ctx.DependsOnCustomDependency($"{nameof(GraphicsSettings)}.{nameof(GraphicsSettings.currentRenderPipeline)}");
#endif

Expand Down Expand Up @@ -678,7 +679,7 @@ public override bool SupportsRemappedAssetType(Type type)
}
}

#if UNITY_2020_2_OR_NEWER
#if UNITY_2020_2_OR_NEWER && !UNITY_2021_3_OR_NEWER
class RenderPipelineWatcher
{
[InitializeOnLoadMethod]
Expand Down

0 comments on commit d555f82

Please sign in to comment.