When to Use a Resource Over a Dictionary?

Описание к видео When to Use a Resource Over a Dictionary?

In this Video I explain:
00:00 - What is Data?
02:10 - What is a Dictionary?
03:30 What is a Resource?
08:10 When do we use a Resource? (Example)
09:30 When to use one over the other and Why?
------------------------------------------------------------------------------------------------
If your Too lazy to watch the full video and want a Quick Answer:
RESOURCES OVER DICTIONARY:
STRONG TYPE: Resources allow for strong typing and structure, making it easier to understand and manage the data.
EDITOR INTEGRATION: Resources integrate better with Godot’s editor, offering a more visual and user-friendly approach to modifying properties.
SERIALIZATION AND RESUABILITY: Resources can be saved and loaded from disk, making them more convenient for reusable data storage compared to dictionaries.
CUSTOM EDITOR PROPERTIES: Custom resources can expose specific properties in the editor, unlike dictionaries.

DICTIONARY USE CASE:
SIMPLE DATA STORAGE: For lightweight, less complex data requirements without the need for serialization or editor integration, dictionaries can be more straightforward.
------------------------------------------------------------------------------------------------------------------------------------------

https://www.codingquests.com
Join my Discord if want:   / discord  
Check out my twitch:   / codingquests  
Check out my Site: https://www.codingquests.com
Check out my Patreon and support me:   / codingquests  
Check out my STEAM: https://store.steampowered.com/search...
2ND Channel:    / @podquests  
Check out My Udemy Courses: https://www.udemy.com/user/omar-zaki-55

Комментарии

Информация по комментариям в разработке