TypeToPrefabMappingDrawer
Last updated
Last updated
This simplifies the process for users to associate a prefab with a specific type using the TypeToPrefabMappingDrawer. The Inspector is designed with two distinct sections:
Dropdown Menu: This is your starting point. Here, users can select from a list of all classes that inherit from the CustomSaveData
. This component ensures that only relevant data types can be chosen for association.
CustomSaveData Classes: Only classes derived from CustomSaveData
, including specialized Player properties, are eligible for selection. This constraint helps maintain data integrity and focuses on data that can be stored effectively.
Drag and Drop Feature: Users can effortlessly drag and drop a prefab into this section. This action directly associates the prefab with the selected type from the left section, streamlining the workflow and making it highly intuitive.
Prefab Assignment: Once a prefab is dropped, it is linked with the type, allowing for seamless integration of data and assets within your project.
For more related information, please refere to & .