From 276d132573e7a384b2075bb0e4ee17c513cbd4e6 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 22 Mar 2021 14:32:37 +0900 Subject: [PATCH] fix GltfParser.TargetPath --- Assets/UniGLTF/Runtime/UniGLTF/IO/GltfParser.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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