Building Saver
You can find all the information about Building Saver here.
Save and load the position, rotation, and scale of all Building Parts in a scene.
Saving may take longer depending of platforms and the number of Building Parts to save.
The save path is automatically defined by the name of the scene and the platform target.
Standalone Save path relative to Application.persistentDataPath.
Mobiles Save path relative to PlayerPrefs.
API
You can access this class by including the following namespace:
using EasyBuildSystem.Features.Runtime.Buildings.Manager.Saver;
This class inherits from Singleton class and can be called like this:
BuildingSaver.Instance
Here is a list of all the events and methods of this component that can be called:
Events
//Called when the save starts.
BuildingSaver.Instance.OnStartSaveEvent.AddListener(() => { });
//Called when the save ends.
BuildingSaver.Instance.OnEndingSaveEvent.AddListener(() => { });
//Called when loading starts.
BuildingSaver.Instance.OnStartLoadingEvent.AddListener(() => { });
//Called when loading ends.
BuildingSaver.Instance.OnEndingLoadingEvent.AddListener(() => { });
All of the methods related to this component can be found in the file "BuildingSaver.cs". If you have any specific questions about the API, feel free to contact us.
Last updated
Was this helpful?