BonesBaking
A class in Root.Township, Alta.Customization.
Editor test asset (menu TEST/Bones Baking) that bakes a body type into cosmetic meshes and moves weights from masked bones onto their parents. Probably only used in the editor.
- Listed in Customization and screenshots
- Inherits or implements
ScriptableObject - Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|---|
BonesBaking() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
8 private and internal fields
| Member | What it is |
|---|---|
private Mesh bakingMesh | Mesh the dummy's skinned renderer bakes into. |
private int[] bones | Indices of bones to remove. |
private bool btnMap | Inspector button that runs Map. |
private SimpleDummy dummyPrefab | Prefab of the dummy character used for baking. |
private int[] mappedParents | For each bone index, the parent bone its weight moves to, or -1. |
private int[] parents | Parent bone index for each entry in bones. |
private SimpleDummy sceneDummy | The dummy instance in the scene. |
private static List<Vector3> workingVector3 | Shared buffer for vertex and normal data. |
Methods
Used in
Members of other types that take, return or hold a BonesBaking: