Save

Save(string key, Transform transform)

Purpose: Saves a single Transform object.

Parameters:

  • key: A string used to generate the save file path.

  • transform: The Transform object to save.

Return Value: Returns true if the save operation was successful, false otherwise.

Sample uses:

public void Save()
{
    bool result = TransformSaveManager.Save(DATA_KEY, _transform);
}

Sample uses for multiple objects:

public void SaveAll()
{
    bool result = TransformSaveManager.Save(DATA_KEY, _transforms);
}

Last updated