# SaveSlot

*This Button is used to create, load or delete games in the Save & Load Main Menu*

***

### PROFILE

* <mark style="color:purple;">profileID</mark>: Index of Save Slot that this Button is related to. Ensure no duplicated profileIDs are assigned.
* <mark style="color:purple;">saveSlotsMenu</mark>: Reference to [SaveSlotsMenu](/save-and-load-add-on/content/03.-content/03.4-main-menu/saveslotsmenu.md)

### CONTENT

* <mark style="color:purple;">noDataContent</mark>: GameObject that gets enabled when the Save Load related to this Profile ID has no data.
* <mark style="color:purple;">hasDataContent</mark>: GameObject that gets enabled when the Save Load related to this Profile ID has valid data.
* <mark style="color:purple;">saveName</mark>: Text that displays the current saved scene of this Save Slot.
* <mark style="color:purple;">playerLevelText</mark>: Text that displays the Player level of this Save Slot.
* <mark style="color:purple;">coinsText</mark>: Text that displays the Current Currency of this Save Slot.
* <mark style="color:purple;">lastPlayedText</mark>:  Text that displays last time this Save Slot was played.

### CLEAR DATA BUTTON

* <mark style="color:purple;">clearDataButton</mark>: Button that, on clicked, clears this Save Slot Data. This action is assigned automatically.

***

### Functions | SaveSlot.cs&#x20;

> <mark style="color:green;">GetProfileId()</mark>
>
> Returns Profile ID ( String )

> <mark style="color:green;">SetInteractable(bool interactable)</mark>
>
> Sets Interactable State. If false, the Button cannot be pressed or hovered.
>
> * <mark style="color:purple;">interactable</mark>: Boolean that controls the Interactable State of the Save Slot Button.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cowsinss-organization.gitbook.io/save-and-load-add-on/content/03.-content/03.4-main-menu/saveslot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
