Easy Build System
Asset StoreSupportTwitterDiscord
  • Introduction
  • Getting Started
    • Getting Started
    • Common Issues
  • Tutorials
    • Beginners Guides
      • Modular Building Guide
      • Upgrading Guide
    • Advanced Guides
  • Components
    • Building Area
    • Building Group
    • Building Manager
      • Building Collection
      • Building Saver
    • Building Part
      • Building Conditions
    • Building Placer
      • Editor Building Placer
    • Building Socket
    • Building Linkable Surface
  • Integrations
    • Game Creator 2
      • Game Creator 2 - Inventory
    • Game Kit Controller
    • PlayMaker
    • PUN 2
    • Mirror
    • Fish-Net
    • RPG Builder
    • uSurvival
    • Rewired
  • Supports
    • XR Interaction Toolkit Support
  • Addons
    • Advanced Buildings
    • Buggy Constructor
    • Circular Building Menu
    • House Buildings
    • Survival Buildings
  • Annex
    • Compatibility
    • Refund Policy
Powered by GitBook
On this page

Was this helpful?

  1. Components
  2. Building Manager

Building Saver

You can find all the information about Building Saver here.

PreviousBuilding CollectionNextBuilding Part

Last updated 1 year ago

Was this helpful?

Save and load the position, rotation, and scale of all in a scene.

Saving may take longer depending of platforms and the number of to save.

The save path is automatically defined by the name of the scene and the platform target.

  • Standalone Save path relative to .

  • Mobiles Save path relative to .

Explore fields description in the Inspector by hovering your cursor over them. You can find more information about this here: .


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(() => { });

Methods

//Force save.
BuildingSaver.Instance.ForceSave();

//Force load.
BuildingSaver.Instance.ForceLoad();

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.

Building Parts
Building Parts
Application.persistentDataPath
PlayerPrefs
Tooltip Attribute