diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfParser.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfParser.cs index 770b6709f..723b6ef5d 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfParser.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfParser.cs @@ -77,7 +77,15 @@ namespace UniGLTF Parse(path, File.ReadAllBytes(path)); } - public string TargetPath; + string m_targetPath; + public string TargetPath + { + get => m_targetPath; + set + { + m_targetPath = Path.GetFullPath(value); + } + } /// /// Parse gltf json or Parse json chunk of glb