Load

Load(string key, Transform transform)

Purpose: Loads saved data and applies it to a Transform object.

Parameters:

  • key: A string used to determine the file path for loading.

  • transform: The Transform object to apply the loaded data to.

Return Value: None.

Sample uses:

public void Load()
{
    TransformSaveManager.Load(DATA_KEY, _transform);
}

Sample uses for multiple objects:

public void LoadAll()
{
    TransformSaveManager.Load(DATA_KEY, _transforms);
}

Last updated