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
  • MAIN SETTINGS
  • TOAST CONFIGURATION
  • MESSAGES CUSTOMIZATION
  • Functions | ToastManager.cs
  1. CONTENT
  2. 04. Shared Content for Add-Ons

ToastManager

Previous04. Shared Content for Add-OnsNextWorkLight

Last updated 1 month ago

Toast Manager allows to send Notifications during the game for better feedback and UI Response.

  • If you are using Inventory Pro Add-On: ToastManager can be located on the object.

  • If you are not using Inventory Pro Add-On & you want to use the ToastManager, you can create a new Canvas and assign the ToastManager component to it. If you already have a Canvas, you can simply attach ToastManager component to it.

MAIN SETTINGS

  • toastPrefab: Reference to Toast Prefab ( UI to Spawn when a Toast Message is shown )

  • toastPosition: Vector2 that defines the coordinates of the Toast Prefab in the UI

TOAST CONFIGURATION

showToastOnTrade is only available for Inventory Pro.

  • showToastOnTrade: If true, it will display toast messages on trading (Crafting or Purchasing)

showAmountTraded is only available for Inventory Pro.

  • showAmountTraded: If true, Toast Messages will display the amount traded (ex: Collected x3 Gears)

showToastOnInsufficientSpace is only available for Inventory Pro.

  • showToastOnInsufficientSpace: If true, Toast Messages will be displayed if the Inventory Space is not enough for an item to be picked up.

MESSAGES CUSTOMIZATION

Here you can customize Notification Messages for different Actions.

Functions | ToastManager.cs

ShowToast(string message)

Shows Toast Notification with Default Duration ( 2 seconds )

  • message: Text to display on the Toast Notification.

ShowToast(string message, float duration)

Shows Toast Notification

  • message: Text to display on the Toast Notification.

  • duration: Time In Seconds for the Toast Message to disappear.