Skip to content

Commit 0d9712d

Browse files
authored
Merge pull request #8 from Tirtstan/experimental
overloaded method to Pathways Manager
2 parents 3811362 + 81851c7 commit 0d9712d

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.0.1] - 2025-07-19
4+
5+
### Added
6+
7+
- `ToggleAutoSave(bool)` overloaded method to `PathwaysManager`.
8+
39
## [1.0.0] - 2025-07-18
410

511
### Changed

Runtime/PathwaysManager.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ public Pathway CreateOrLoadPathway(string pathwayId, bool setCurrent = true)
124124
public bool CanAutoSave() =>
125125
IsAutoSaveEnabled && CurrentPathway != null && AutoSaveSlots > 0 && AutoSaveInterval > 0f;
126126

127+
/// <summary>
128+
/// Toggles auto-saving for the current pathway.
129+
/// </summary>
130+
/// <param name="enable">To enable or disable auto-saving.</param>
131+
public void ToggleAutoSave(bool enable) => IsAutoSaveEnabled = enable;
132+
127133
/// <summary>
128134
/// Sets whether auto-saving is enabled for the current pathway.
129135
/// </summary>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.tirt.pathways",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"displayName": "Pathways",
55
"description": "A Unity package for managing data file pathways and directories without handling actual data persistence. Perfect for save systems and sessions, user profiles, level data, and any scenario requiring organized file management.",
66
"unity": "2019.4",

0 commit comments

Comments
 (0)