This is a Unity Project for my mod GorillaShirts which lets you put on custom shirt cosmetics in the game. With this Unity project it will let you create your own custom shirt cosmetics with a variety of different options.
To run the project you are going to need two things:
- Unity Hub (Download & Installer)
- Unity 2022.3.2 (Download & Changelog)
To install the project, go to the top of this page, click on the “Code” button and then click on the “Download ZIP” button that appears in the dropdown menu. Extract the ZIP folder that was downloaded onto your device, we will now call this file the project directory.
In Unity Hub, click on the “Open” button, and locate the folder extracted from the ZIP you just downloaded. I recommend using 7Zip to extract your folders but you can use anything you want.
Once the project is opened, the first thing you need to do is go into the correct scene. In the bottom "Assets" tab on default, double click on the "Scenes" folder and then the "Shirt Creation" option.
Once your scene is opened, you should see a wide selection of shirts you can adjust (Includes Hoodies, Turtlenecks, T-Shirts, Croptops) or you can use one of the four template stands to create your own shirt. Each stand has the "ShirtDescriptor" component applied to it, using this component you are able to tell the project information relating to your shirt which includes:
- Name, Author, Description
- Objects (Body, Upper Arms, Lower Arms, etc.)
- Custom Colour (All colours will match the player wearing the shirt)
On the top of the Unity window, you should see a button labeled as "GorillaShirts", and then an option labeled "Shirt Exporter", once you click on the option it should open the ShirtExporter. The ShirtExporter is where you export your shirt as a .shirt
file that can be used by GorillaShirts to include your shirt into the mod.
To create your shirt, you must include the correct descriptor information, the correct parents for the objects, and the correct references.
When creating your shirt you can edit the ShirtDescriptor data at any time by adjusting the variables. Here is a chart which contains the variable and how it plays into how your shirt is exported.
Variable | Action |
---|---|
Name | The name of the shirt |
Author | The author of the shirt |
Description | The description of the shirt |
Custom Colors | If enabled, all colours will match the player wearing the shirt |
For your shirt to be mapped correctly, the objects used for your shirt have to be in a certain object inside of the Gorilla rig. Here is a chart which contains the object type and what the parent of the object should be in the Gorilla rig.
Type | Parent | Path |
---|---|---|
Body | body | Gorilla Rig/body |
Left Upper Arm | upper_arm.L | Gorilla Rig/body/shoulder.L/upper_arm.L |
Left Lower Arm | forearm.L | Gorilla Rig/body/shoulder.L/upper_arm.L/forearm.L |
Right Upper Arm | upper_arm.R | Gorilla Rig/body/shoulder.R/upper_arm.R |
Right Lower Arm | forearm.R | Gorilla Rig/body/shoulder.R/upper_arm.R/forearm.R |
Finally, you will need to connect the shirt objects to the descriptor, they can't be found on their own. For instance the Body object will go into the Body object variable, the Right Upper Hand object for instance will go into the Right Upper Hand object variable.