Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Current Profile Loaded#

Save & Load / Current Profile Loaded

  • Can Read

  • Cannot Write

Description#

The current profile slot loaded (if any)

Code#

using System;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Current Profile Loaded")]
    [Category("Save & Load/Current Profile Loaded")]
    
    [Description("The current profile slot loaded (if any)")]
    [Image(typeof(IconDiskSolid), ColorTheme.Type.Blue)]
    
    [Keywords("Save", "Load", "Slot", "Profile")]
    
    [Serializable]
    public class TypeNumberCurrentSaveProfile : TypeNumber
    {
        public override double Get(Args args)
        {
            return SaveLoadManager.CurrentProfile;
        }
        
        public override string ToString()
        {
            return "Current Profile";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.