From 5d980b1c479645f9023dfe1167909aabcd528dcd Mon Sep 17 00:00:00 2001 From: hybridherbst Date: Mon, 23 Oct 2023 15:31:15 +0200 Subject: [PATCH] fix importer context root not being set --- Runtime/Scripts/Plugins/ImportContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Scripts/Plugins/ImportContext.cs b/Runtime/Scripts/Plugins/ImportContext.cs index dbe0ad03a..1d9fd409b 100644 --- a/Runtime/Scripts/Plugins/ImportContext.cs +++ b/Runtime/Scripts/Plugins/ImportContext.cs @@ -19,7 +19,7 @@ public class GLTFImportContext public readonly IReadOnlyList Plugins; public GLTFSceneImporter SceneImporter; - public GLTFRoot Root; + public GLTFRoot Root => SceneImporter?.Root; #if UNITY_EDITOR internal GLTFImportContext(AssetImportContext assetImportContext, IReadOnlyList plugins)