Skip to main content

Yotb Skinunlocker

Overview

This component serves as a simple data holder for skin selection state. It is designed to be attached to an entity (typically a player or character) to persist and provide access to a chosen skin identifier. It does not enforce validation, handle network synchronization, or directly apply visual changes—those responsibilities are expected to be handled externally.

Dependencies & Tags

None identified.

Properties

PropertyTypeDefault ValueDescription
skinstring?nilStores the identifier for the currently selected skin. nil indicates no skin has been set.

Main Functions

SetSkin(skin)

  • Description: Sets the stored skin identifier.
  • Parameters:
    skin (string): A string identifier representing the desired skin (e.g., a mod's skin key or asset path).

GetSkin()

  • Description: Returns the currently stored skin identifier.
  • Parameters: None.
  • Returns: string? — The stored skin identifier, or nil if no skin is set.

Events & Listeners

None.