Skip to content

Conversation

@PierreFonda3D
Copy link
Contributor

@PierreFonda3D PierreFonda3D commented Jan 14, 2026

Saving data to files and loading data from files

This PR adds new functionalities related to data persistence.
You can now save and load data from a simple click in the UI.

Scripts

Core/Scripts/UI/DataManager/SDataSaveLoad.cs

Script that listens to UI buttons and handles saving/loading data to files located in:
\SofaUnity\Core\Scripts\UI\DataManager\DynamicDataSaves

Data is saved as JSON and read back by the same script.

Example of a saved file format:

{
    "dataName": "amplitude",
    "optionalCustomName": "Amplitude Oscillator",
    "value": "1",
    "dataType": 2
}

Core/Scripts/UI/DataManager/DynamicSDataManager.cs and DynamicSdata.cs

Code cleanup and addition of an optional custom name functionality.
By default, the data name is used if no custom name is provided.

@PierreFonda3D
Copy link
Contributor Author

PierreFonda3D commented Jan 14, 2026

Missing:

  • Vec3 compatibility Save
  • Vec3 compatibility Load
  • Test in build mode to see if path are working

@PierreFonda3D PierreFonda3D added pr: status to review To notify reviewers to review this pull-request and removed pr: status wip labels Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: status to review To notify reviewers to review this pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants