Skip to content

Commit

Permalink
Change default import path to Assets/RealityToolkit (#126)
Browse files Browse the repository at this point in the history
* Change default import path to Assets/RealityToolkit

* Adjust default import path on hand utils
  • Loading branch information
FejZa authored Jun 19, 2024
1 parent 099ed1a commit 3cb44d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Editor/Settings/RealityToolkitEditorSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class RealityToolkitEditorSettings : EditorScriptableSettings<RealityTool
/// </summary>
public const string AssetPath = "Assets/RealityToolkit/Settings";

private const string defaultAssetImportPath = "Assets/RealityToolkit.Generated/";
private const string defaultAssetImportPath = "Assets/RealityToolkit/";
[SerializeField, Tooltip("This is the path default toolkit assets will be imported to, to make them mutable.")]
private string assetImportPath = defaultAssetImportPath;

Expand All @@ -28,7 +28,7 @@ public class RealityToolkitEditorSettings : EditorScriptableSettings<RealityTool
public string AssetImportPath
{
get => assetImportPath;
set => assetImportPath = value;
private set => assetImportPath = value;
}
}
}
2 changes: 1 addition & 1 deletion Runtime/Input/Hands/Poses/HandPose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void Save(string fileName = null)
fileName = $"{nameof(HandPose)}_{RecordedHandedness}";
}

UnityEditor.AssetDatabase.CreateAsset(this, System.IO.Path.Join("Assets", "RealityToolkit.Generated", $"{fileName}.asset"));
UnityEditor.AssetDatabase.CreateAsset(this, System.IO.Path.Join("Assets", "RealityToolkit", $"{fileName}.asset"));
UnityEditor.AssetDatabase.Refresh();
}

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Input/Hands/Poses/HandPoseRecorder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void Record()
}).ToList()
});

System.IO.File.WriteAllText(System.IO.Path.Join(Application.dataPath, "RealityToolkit.Generated", $"{nameof(SerializedHandPose)}.txt"), json);
System.IO.File.WriteAllText(System.IO.Path.Join(Application.dataPath, "RealityToolkit", $"{nameof(SerializedHandPose)}.txt"), json);
return;
}

Expand Down

0 comments on commit 3cb44d9

Please sign in to comment.