Save & Load Add-On
  • Welcome to Save & Load Add-On for FPS Engine!
  • BEFORE WE START
    • Early Considerations
    • Add-On Compatibility
    • List of Tutorials
  • GETTING STARTED
    • 01. Basic Set-Up
    • 02. Roadmap
  • CONTENT
    • 03. Content
      • 03.1 DataPersistence
        • DataPersistence_SO
        • DataPersistenceManager
        • FileDataHandler
        • GameData
        • GameDataManager
      • 03.2 Editor
      • 03.3 Item Registry
        • ItemRegistry
        • ItemRegistryEditor
        • ItemRegistryAssetProcessor
      • 03.4 Main Menu
        • SaveSlot
        • SaveSlotsMenu
      • 03.5 Objects Save Data
        • CustomSaveData
      • 03.6 Serialization
        • SerializableVector3
        • SafeSerializationBinder
      • 03.7 Triggers
        • SaveTrigger
        • LoadTrigger
        • ToggleAutoSave
      • 03.8 Type Registry
        • TypeRegistry
        • TypeToPrefabMappingDrawer
      • 03.9 UI
        • SaveLoadButton
    • 04. Shared Content for Add-Ons
      • ToastManager
      • WorkLight
  • HOW TO USE & GUIDES
    • Save & Load Games Programmatically
    • Saving Custom Data: Simple Method
    • Saving Custom Data: Advanced Method
    • Loading Custom Data
    • Saving Instantiated Objects
    • Save & Load System during Development
    • Working with Save & Load in Cowsins Manager
    • Uninstalling the Add-On: Fixing Errors
    • Type to Prefab Mappings in Game Data Manager
    • How to add Buttons to Save & Load a game
    • Non-Saveable Scenes
    • Loading Scenes & Load Player Data
  • FAQ
    • FAQ
  • SUPPORT
    • Support
Powered by GitBook
On this page
  • PROFILE
  • CONTENT
  • CLEAR DATA BUTTON
  • Functions | SaveSlot.cs
  1. CONTENT
  2. 03. Content
  3. 03.4 Main Menu

SaveSlot

Previous03.4 Main MenuNextSaveSlotsMenu

Last updated 1 month ago

This Button is used to create, load or delete games in the Save & Load Main Menu


PROFILE

  • profileID: Index of Save Slot that this Button is related to. Ensure no duplicated profileIDs are assigned.

  • saveSlotsMenu: Reference to

CONTENT

  • noDataContent: GameObject that gets enabled when the Save Load related to this Profile ID has no data.

  • hasDataContent: GameObject that gets enabled when the Save Load related to this Profile ID has valid data.

  • saveName: Text that displays the current saved scene of this Save Slot.

  • playerLevelText: Text that displays the Player level of this Save Slot.

  • coinsText: Text that displays the Current Currency of this Save Slot.

  • lastPlayedText: Text that displays last time this Save Slot was played.

CLEAR DATA BUTTON

  • clearDataButton: Button that, on clicked, clears this Save Slot Data. This action is assigned automatically.


Functions | SaveSlot.cs

GetProfileId()

Returns Profile ID ( String )

SetInteractable(bool interactable)

Sets Interactable State. If false, the Button cannot be pressed or hovered.

  • interactable: Boolean that controls the Interactable State of the Save Slot Button.

SaveSlotsMenu