Blade & Sorcery
0 of 0

File information

Last updated

Original upload

Created by

Greenf1re

Uploaded by

Greenfireh3bo3

Virus scan

Safe to use

Tags for this mod

About this mod

This includes two mods. The first is a Unity Editor script for modders who want to make avatars, it automatically sets up all 50 Custom References with their corresponding bones and names. The second one is the fix I came up with to prevent custom avatar skins from obstructing the player's vision while wearing them.

Requirements
Permissions and credits

Custom Avatar Utilities
Create Bone Index [Unity Editor Script]:
Tired of having to create 50 custom references for each avatar/character you want to make? Fear no more, the "Create Bone Index" script does it for you. As long as the model is humanoid, the script will create every custom reference with name and bone ready for Custom Avatar use.
How to use:
  • After importing a model, select it, go to "Rig" tab, select humanoid and press Apply. 
  • Drag the model onto the scene and unpack it. Add the item component and make sure to write in an item ID, otherwise it won't work. Also make sure it has the animator component on it. Finally, add the "Create Bone Index" component and it's done.
  • You will now see all 50 references with their corresponding bones. The last thing you need to do is change the bone in "Rig_Mesh" (the very last custom reference) to the Root bone. Then you can create the prefab and export it. You still need to write the jsons with bone angles though.
Face/Mesh Hider
Tired of seeing the inside of your face every time you use a Custom Avatar?


Want to get rid of that, while still being able to see enemy NPCs faces?


With the Face Hider (B&S mod dll) you can make it so that a mesh is not visible to the player camera, but only if that mesh is part of the player model. This way, you can still see the heads on enemy NPCs with the same model, but the inner part of the head won't bother you. It's really easy to set up as well,
  • If you used the Create Bone Index script, a game object named "Hide" will appear as a child of the model. Just drag and drop any meshes that you want to be hidden from the player here. If you didn't use the script, just create an empty game object and name it "Hide" then put the head, eyes, and mouth meshes here. Set the preview's layer to 22, Player Locomotion
  • That's it for the Unity part. You can build it and start working on the json. Open Item_Avatar_INSERTID.json, go over to modules and paste this: {
    "$type": "CustomAvatarUtils.FaceHiderModule, Unity ScratchPad",
     }
  • That's it! Once the skin is loaded, it takes about 5 seconds to hide the face mesh. After that it will no longer bother you
Video Tutorial for Unity Script and Cloth:


Installation:
For the Unity part, just drag the Unity Package into Unity, and then select "import." The face hider is installed as a regular mod, either via the mod manager download or manual download. For modders who want to use the face hider, just put this mod as a requirement.