Merge pull request #1884 from ousttrue/fix/may_fixed_1866

remove ThisType? field.
This commit is contained in:
ousttrue 2022-10-25 13:05:14 +09:00 committed by GitHub
commit 8644aabd1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,20 +50,10 @@ namespace VRMShaders
}
}
static PathObject? _root;
public static PathObject UnityRoot
{
get
{
if (!_root.HasValue)
{
_root = FromFullPath(Path.GetDirectoryName(Application.dataPath));
}
return _root.Value;
}
}
public static PathObject UnityRoot { get; } = FromFullPath(Path.GetDirectoryName(Application.dataPath));
public static PathObject UnityAssets => UnityRoot.Child("Assets/");
// 記述順に解決?
public static PathObject UnityAssets { get; } = UnityRoot.Child("Assets/");
PathObject(string src)
{