Skins
Creating Skins
This applies to both follower skins and player skins.
To create a skin, you first need to make a class overriding CustomFollowerSkin
or CustomPlayerSkin
.
Example:
CustomFollowerSkin
supports the following overrides:
Type | Name | Default | Type |
---|---|---|---|
string | Name | [REQUIRED] | Both |
Texture2D | Texture | [REQUIRED] | Both |
List<SkinOverride> | Overrides | [REQUIRED] | Both |
List<WorshipperData.SlotsAndColours> | Colors | ((Magenta & Black)) | Follower Skins |
bool | TwitchPremium | false | Follower Skins |
bool | Hidden | false | Follower Skins |
bool | Unlocked | true | Follower Skins |
bool | Invariant | false | Follower Skins |
Skin Sheets
The skin sheet must be a single image with rectangle boundaries for each ‘attachment’ to override.
Example sheets:
Follower Skin Overrides
The following overrides are supported for follower skins:
Player Skin Overrides
The following overrrides are supported for player skins:
Colors
Followers can have unique colors by overriding attachments. All white pixels in the overrides defined in Colors get replaced by the selected color.
Example Colors override:
Adding Skins
To add a skin to the game, simply use CustomSkinManager.Add()
.
Example:
Final Steps
For the skin texture to load, you need to put it in the appropriate location. For the example, this would be /Assets/example_sheet.png
relative to the root folder containing the .dll
Directory structure: