<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />
Navigation
</aside>
Blocks are fundamental units in the game's grid system, managed by the LevelElementBehavior class. They are initialized, manipulated, and rendered through interactions with the LevelRepresentation, LevelController, and skin data classes. These elements support various states and behaviors, such as being occupied, previewed, or collected, and are essential for the game's level mechanics and visual representation.
The LevelSkinData class is used to manage the visual appearance of the game's level elements. It stores different images and colors that can be applied to the blocks within a level.
Skin Data is stored in the Level Skin Database scriptable object and contains the following variables:
Id - A unique identifier used to determine which skin should be loaded.
Preview Sprite - The sprite used in the Store UI.
Sprites - An array of SpriteData objects, each representing a different type of element sprite with associated colors.
Type: The type of block.
Image: The actual image used for the block.
Preview Color: The color used for preview effects.
Burst Color: The color used for burst particle effects.
Special Sprite - A background sprite is used as an alternative to the actual image when a Сollectable object is attached to the block.
You can read more about the Skin System on a separate page - Skin System