font-caseSupported Types

Omni Save serializes almost anything out of the box:

  • C# Primitives: int, float, string, bool, etc...

  • Unity Types: Vector3, Quaternion, Color, LayerMask, etc...

  • Data Collections: List<T>, Dictionary<K,V>, T[]... ( Lists, Dictionaries, Arrays )

  • Unity References: GameObjects, ScriptableObjects, etc...

  • Classes/Structs: Any [Serializable] class or struct...

// Custom type example
[System.Serializable]
public struct PlayerStats 
{
    public int strength;
    public int agility;
    public string className;
}

PlayerStats stats = new PlayerStats { strength = 10, agility = 15 };
SaveManager.Save("stats", stats, PersistenceScope.Global);
SaveManager.SaveAll();

Last updated