-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Another Premium and Complete solution asset for Saving and Loading data.
Because Save Game Pro has bunch of features that let you save and load your data in fastest and most secure ways.
You can save everything and load it back see the supported types by Save Game Pro.
We currently support 47 types. you can suggest your new types to us.
✨ Suggest a data type that we have missed
Find the Save Game Free on Unity Asset Store
Take a look at online version of the Save Game Pro package documentation
- Fast (We are using BinaryWriter and BinaryReader to save and load)
- Secure (AES is under development)
- Built-in Supported Types
- Cross-Platform (We are supporting all platforms that Unity supports, but we might not tested some of them) (We use PlayerPrefs for WebGL and other WebPlayers)
- Easy to use (You can call Save and Load method to do anything)
- Custom Types (You can your own type to Save Game Pro types)
- Well Documentation
- Examples and Tutorials
Let us sort it in Alphabetical:
- AudioClip
- BoneWeight
- bool
- Bounds
- BoxCollider
- BoxCollider2D
- byte
- CapsuleCollider
- CapsuleCollider2D
- char
- Color
- Color32
- CompositeCollider2D
- decimal
- double
- EdgeCollider2D
- Enum or enum
- float
- Gradient
- GradientAlphaKey
- GradientColorKey
- int
- long
- Material
- Matrix4x4
- Mesh
- MeshCollider
- PolygonCollider2D
- Quaternion
- Rect
- Rigidbody
- Rigidbody2D
- sbyte
- short
- SphereCollider
- Sprite
- string
- TerrainCollider
- Texture2D
- Transform
- uint
- ulong
- ushort
- Vector2
- Vector3
- Vector4
- WheelCollider
- SortingGroup (Added in 1.2.2)
- InputField (Added in 1.2.2)
- Toggle (Added in 1.2.2)
- Slider (Added in 1.2.2)
- Dropdown (Added in 1.2.2)
✨ Suggest a data type that we have missed
📖 Learn How to Create your own data type saver?
You can also save any of the Supported Types in common collections such as 1D, 2D, 3D Arrays, Lists, Dictionaries, Hashtables, Stack, Queue, ...
You can save and load your game data using SaveGame
class api:
// Saving character position (rotation and scale also saved)
SaveGame.Save<Transform> (myCharacter.transform, "mycharacter");
// Load the character position if we have any saved data. (rotation and scale also loaded)
if (SaveGame.Exists ("mycharacter")) {
SaveGame.Load<Transform> ("mycharacter", myCharacter.transform);
} else {
// Set character to it's default position if there is no saved position.
myCharacter.transform.position = myCharacterDefaultPosition;
}
It is very simple example that show how it is easy to use Save Game Pro to save and load game data.
📖 How to save game levels progress?
SaveGame.Save<T> (string identifier, T data);
: Saves a data with the identifier.
SaveGame.Save<T> (string identifier, T[] data);
: Saves an array of data with the identifier.
SaveGame.Save<T> (string identifier, T[,] data);
: Saves an 2d array of data with the identifier.
SaveGame.Save<T> (string identifier, T[,,] data);
: Saves an 2d array of data with the identifier.
SaveGame.Load<T> (string identifier);
: Loads a data using the identifier.
SaveGame.Load<T> (string identifier, T outputObject);
: Loads a data using the identifier and outputs the loaded data to the object.
SaveGame.LoadArray<T> (string identifier);
: Loads an array of data using the identifier.
SaveGame.LoadArray<T> (string identifier, T outputObjects);
: Loads an array of data using the identifier and outputs the loaded data to the object.
SaveGame.Load2DArray<T> (string identifier);
: Loads an 2d array of data using the identifier.
SaveGame.Load2DArray<T> (string identifier, T[,] outputObjects);
: Loads an 2d array of data using the identifier and outputs the loaded data to the object.
We are waiting for your Reviews, Ratings and Comments.
Made with ❤️ by Bayat Games