ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

How to Save Your Inventory in Unity - (No PlayerPrefs and No JSON)

unityinventorysave

saveinventory

how to save inventory

how to save inventory in unity

unity how save inventory

unity no playerprefs save

unity write file

unity read file

microsoft C# streamreader

microsoft C# streamwriter

how to save my inventory in unity

Автор: Feed My Kids

Загружено: 2021-04-19

Просмотров: 7670

Описание: I'll show you the method I used to save my inventory to a file and then reload the inventory from the file.

Discord for Support:   / discord  

I'm using Visual Studio 2019 and Unity 2019.3 but the version doesn't matter very much for this tutorial - you could use older or newer versions of Unity to accomplish the same objectives.

This system is built on my Simple Inventory package which you can get for free on GitHub. You can also use this system with your inventory, assuming you store your inventory as a Dictionary.

This does not use the Unity built-in PlayerPrefs method (hack) and it doesn't use the JSON Utility built into the UnityEngine namespace.

This will create a very simple save file in your Application's data path. Because of its simplicity, the file is easy to modify so it would be easy for your players to cheat. That is the tradeoff of using this system over another one (that might be more complicated).

Total lines of code (including white space) on the Save class is 87.

GitHub Code: https://github.com/KampinKarl1/Simple... (You'll need the project - or you can manually bring in the SampleScene, Inventory, SaveInventory class, ThirdPersonMovement, Follow (camera)).

I recorded this on Active Presenter.

The Floppy Disk in the thumbnail was a free png from FlatIcon.com FreePik's Essentials pack.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
How to Save Your Inventory in Unity - (No PlayerPrefs and No JSON)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Магазин скинов в Unity! ПОЛНЫЙ ГАЙД! Паттерны, сохранения, оптимизации. Skin shop

Магазин скинов в Unity! ПОЛНЫЙ ГАЙД! Паттерны, сохранения, оптимизации. Skin shop

Data Persistence - Save & load your game state while avoiding common mistakes | Unity Tutorial

Data Persistence - Save & load your game state while avoiding common mistakes | Unity Tutorial

Unity3D - Saving and Loading your Inventory with Scriptable Objects | Part 2

Unity3D - Saving and Loading your Inventory with Scriptable Objects | Part 2

SCRIPTABLE OBJECTS in Unity

SCRIPTABLE OBJECTS in Unity

Система Сохранений на Unity / Save & Load Unity

Система Сохранений на Unity / Save & Load Unity

How to Build A Save System in Unity

How to Build A Save System in Unity

Flexible INVENTORY SYSTEM in Unity with Events and Scriptable Objects

Flexible INVENTORY SYSTEM in Unity with Events and Scriptable Objects

SAVE & LOAD SYSTEM in Unity

SAVE & LOAD SYSTEM in Unity

Saving Data - Persistence: Make a game like Zelda using Unity and C#

Saving Data - Persistence: Make a game like Zelda using Unity and C#

Save System (aka Serialization) - Items & Inventory (pt.19)

Save System (aka Serialization) - Items & Inventory (pt.19)

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]