GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ShadedTechnology/GameSerializationSystem: Game data serialization system for Unity game engine

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
Core
Core
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SavingManager.cs
SavingManager.cs
 
 
TransformSaver.cs
TransformSaver.cs
 
 

Repository files navigation

Unity Serialization System

Game data serialization system for Unity game engine.

How to use:

First make sure to use GameSerialization namespace:

using GameSerialization;

You can save your data in three ways:

  • using SaveableProperty attribute for your properties:
[SaveableProperty] public Vector3 vectorToSave {get; set;}
  • using SaveableField attribute for your fields:
[SaveableField] public Vector3 vectorToSave;
  • implementing IOnSaveGameMethod and IOnLoadGameMethod interfaces for your class:
public class ExampleSaveDataClass : MonoBehaviour, IOnSaveGameMethod, IOnLoadGameMethod
{
    private float dataToSave;

    public void OnSaveGameMethod(SerializationInfo info)
    {
        SerializationHelper.SaveObject(info, this, dataToSave, typeof(float));
    }

    public void OnLoadGameMethod(SerializationInfo info)
    {
        SerializationHelper.LoadObject(info, this);
    }
}

To trigger saving of your scene call:

public SavingManager savingManager;

...

savingManager.SaveGame(saveName);

To trigger loading of your scene call:

public SavingManager savingManager;

...

savingManager.LoadGame(saveName);

About

Game data serialization system for Unity game engine

Topics

loadingsavingserializationunityunity-assetunity-editorunity-scriptsunity2dunity3dunity3d-plugin

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.