UMA Wiki

Unity Multipurpose Avatar

User Tools

Site Tools


knowledgebase:slot

Slots

All UMA content that provides a mesh is a slot. Slots are basically containers holding all the necessary data to be combined with the rest of an UMA Avatar at runtime.

For example, the base meshes provided are normally split into several pieces, such as head, torso, and legs, and then implemented as slots which can be combined in many different ways. An UMA avatar is in fact, the combination of many different slots, some of them carrying body parts, others providing clothing or accessories. Lots of UMA variation can be created simply by combining different slots for each avatar.

Slots also have a material sample, which is then combined with all other slots that share the same material. Female eyelashes for example, have a unique transparent material that can be shared with transparent hair. It's necessary to set a material sample for all slots, as those are used to consider how meshes will be combined. In many cases, the same material sample can be used for all slots. UMA standard avatar material uses a version of Unity's Standard Shader, but UMA provides many other options.

The big difference between body parts and other content is that body parts need to be combined in a way that the seams won't be visible. To handle this, it's important that the vertices along mesh seams share the same position and normal values to avoid lighting artifacts. To handle that, we provide a tool for importing meshes that recalculate the normal and tangent data based on a reference mesh.

UMAMeshData

UMAMeshData is an important data container that resides on a slot. It stores all the vertices, normals, tangents, uvs, etc… that is necessary to build the part of the mesh that the slot represents.

Slot Creation

to come…

Slot Builder

Slot Builder Parameters

Seams Mesh: (Optional) This pulls only the normals values off the supplied mesh. Use this by supplying an unified mesh that spans seams so that the normals are consistent across the seam. It's not required if the slot being created does not span any possible seams.

Slot Mesh: The skinned mesh for the slot to be built.

UMA Material: The UMA Material that this slot will be using. The commonly used one is “UMA_Diffuse_Normal_Metallic”.

Slot Destination Folder: The folder in that a new folder for the slot will be created along with the slot asset.

Root Bone: The name of the root bone for the skeleton hierarchy for this mesh. Normally, “Global”.

Element Name: The name of the slot. This needs to be unique!

Binary Serialization: Toggle binary serialization for the resulting SlotDataAsset. This can be much faster for very large meshes and meshes with lots of blendshape data.

Create Overlay: When checked, create an overlay asset in the slot's folder with the filename suffix “_Overlay” added.

Create Wardrobe Recipe: When checked, create a wardrobe asset in the slot's folder with the filename suffix “_Recipe” added.

Add To Global Library: When checked, automatically add this slot to the global library.

Slot Asset

See Also

knowledgebase/slot.txt · Last modified: 2018/08/09 20:12 by kenamis