Skip to content

Editing in Unity

The Hexpie is setup in a way that clearly separates what is what into folders, so stuff should be pretty easy to find.

  • Hexpie.prefab: The free version of the Hexpie, which holds just the avatar and the simple bandaging toggles.
  • Hexpie Quest.prefab: The Quest version based on the free version, it is basically only the avatar.
  • Bandage Wrap/Bandages Toggle.prefab: A simplified version of the bandaging system, with toggles for each limb and a staining toggle.
  • Hexpie Supporter.prefab: The supporter version that also holds the HUD, items and fancier bandaging mechanics.
  • Bandage Wrap/Bandages.prefab: Holds the bandaging system contacts and logic.
  • HUD/HUD.prefab: The HUD, moodles and simulation system. Can be dropped into other avatars if you just want the HUD system.
  • Inventory/Inventory.prefab: The contacts and attachment points needed for the inventory system to work.
  • Inventory/Items.prefab: Holds the inventory prefab as well as the prefabs for the items bundled, this is due to how the items are all a single mesh in reality to improve avatar rating.
  • Items/Antiseptic.prefab
  • Items/Bandage.prefab
  • Items/Flashlight.prefab: Flashlight with no light to improve avatar rating.
  • Items/Flashlight No Light.prefab: Flashlight with a light attached. Will set the avatar to poor rating.
  • Items/Fruit.prefab

I’ve tried making it quite simple to add new items. Take a look at how existing items are setup to get an idea of it, but it is essentially two main pieces.

  • The itemSlotController, which holds the necessary layers for an item to work. You need to have it in your item.
  • The controller for that item, which holds its inventory data like weight, as well as any unique behavior if it has any. It’s technically not necessary.

The shader takes a spreadsheet that can hold up 8 items total, with 1 different state for each, and each cell is 16x16. Right below is an example of how it looks like.

The spritesheet used for the existing items

Making a new icon is as simple as just putting your icon in the spread sheet and changing it in the shader.

The avatar uses Poiyomi to most materials, however the avatar also uses custom made shaders for more complex parts like the HUD/Moodles as well as the wound material. For most intents and purposes you do not need to touch the HUD or Wounds material at all.

The avatar uses a UDIM naming scheme, these are the main materials you should care about:

Material Texture Set
Body 1001
Head 1002
Fur 1003
Eyes 1004

With that said, changing textures for your own is as simple as changing the texture on the appropiate materials, no black magic needed. If you’re uploading for Quest make sure to use the atlased version of your texture instead, which you can generate with the Hexpie Handler

If you’re intending to make changes to the model itself, first I would advise you to make a backup of the FBX in another folder just in case, and then replacing the FBX with your new one. If you exported it through the appropiate means it should just work with no issues.

You may have noticed that there is no Face Tracking prefab. This avatar uses the native face tracking added officially in 3.10.6. Opening VRCFT will automatically trigger the face tracking, it doesn’t take a toll on the amount of parameters and it tracks better than before! So yeah :3

The avatar abuses VRCFury’s compression heavily by adding many parameters into menus that are then deleted through a script to not clutter the menus. The reason for this is because VRCFury has a parameter compressor which allows for more parameters but at a small delay, but only if that parameter is inside of a menu. This trick allows transferring all the parameters (over 1000!!!) to the remote with a small amount of delay, which beats not being able to send it at all.