diff --git a/Runtime/OpenXRRuntimeJson.cs b/Runtime/OpenXRRuntimeJson.cs index 989109e..8ceafa8 100644 --- a/Runtime/OpenXRRuntimeJson.cs +++ b/Runtime/OpenXRRuntimeJson.cs @@ -10,11 +10,11 @@ namespace OpenXRRuntimeJsons { public static class OpenXRRuntimeJson { - private static readonly IEnumerable OpenXRRuntimeJsons; + private static readonly IDictionary openXRRuntimeJsons; static OpenXRRuntimeJson() { - OpenXRRuntimeJsons = new List + var runtimeJsons = new List { new EnvironmentVariableRuntimeJson(), new SystemDefaultRuntimeJson(), @@ -24,13 +24,14 @@ static OpenXRRuntimeJson() new ViveVRRuntimeJson(), new VarjoRuntimeJson(), }; + openXRRuntimeJsons = runtimeJsons + .Where(e => !string.IsNullOrWhiteSpace(e.JsonPath.Value)) + .ToDictionary(e => e.Name, e => e.JsonPath.Value); } public static IDictionary GetRuntimeJsonPaths() { - return OpenXRRuntimeJsons - .Where(e => !string.IsNullOrWhiteSpace(e.JsonPath.Value)) - .ToDictionary(e => e.Name, e => e.JsonPath.Value); + return openXRRuntimeJsons; } public static void SetRuntimeJsonPath(string jsonPath) diff --git a/package.json b/package.json index 0d5a991..5486cee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.shiena.openxrruntimejson", - "version": "0.0.1", + "version": "0.0.2", "displayName": "OpenXR Runtime Selector", "description": "Runtime Selector for OpenXR", "unity": "2020.2",