umasteeringgroup / UMA

Unity Multipurpose Avatar
MIT License
744 stars 169 forks source link

NullReferenceException: Object reference not set to an instance of an object #244

Closed jjackson12172 closed 5 years ago

jjackson12172 commented 5 years ago

Describe the bug A clear and concise description of what the bug is.

Environment (please complete the following information):

To Reproduce Steps to reproduce the behavior:

  1. Go to 'UMA on Unity top tool bar'
  2. Click on 'UMA'
  3. Scroll down to 'Slot Builder'
  4. Slot Builder Panel Opens

Applied all mesh and materials as required to create slot. Check Marked - Binary, Create Overlay, Add to Library

  1. Click "Create Slot Button"

  2. UMA Creates (2) Files Only 1.) BinaryAssetWrapper 2.) SkinnedMesh

  3. NO Overlay File - Throws Exception:

NullReferenceException: Object reference not set to an instance of an object

UMA.UMAMeshData.FindRoot (UnityEngine.Transform rootBone, UnityEngine.Transform[] bones) (at Assets/UMA/Core/StandardAssets/UMA/Scripts/UMAMeshData.cs:676)

UMA.UMAMeshData.UpdateBones (UnityEngine.Transform rootBone, UnityEngine.Transform[] bones) (at Assets/UMA/Core/StandardAssets/UMA/Scripts/UMAMeshData.cs:618)

UMA.UMAMeshData.RetrieveDataFromUnityMesh (UnityEngine.SkinnedMeshRenderer renderer) (at Assets/UMA/Core/StandardAssets/UMA/Scripts/UMAMeshData.cs:524)

UMA.SlotDataAsset.UpdateMeshData (UnityEngine.SkinnedMeshRenderer meshRenderer, System.String rootBoneName) (at Assets/UMA/Core/StandardAssets/UMA/Scripts/SlotDataAsset.cs:159)

UMA.Editors.UMASlotProcessingUtil.CreateSlotData (System.String slotFolder, System.String assetFolder, System.String assetName, UnityEngine.SkinnedMeshRenderer mesh, UMA.UMAMaterial material, UnityEngine.SkinnedMeshRenderer prefabMesh, System.String rootBone, System.Boolean binarySerialization) (at Assets/UMA/Core/StandardAssets/UMA/Scripts/Editor/UMASlotProcessingUtil.cs:207)

UMA.Editors.UmaSlotBuilderWindow.CreateSlot_Internal () (at Assets/UMA/Core/StandardAssets/UMA/Scripts/Editor/UmaSlotBuilderWindow.cs:217)

UMA.Editors.UmaSlotBuilderWindow.CreateSlot () (at Assets/UMA/Core/StandardAssets/UMA/Scripts/Editor/UmaSlotBuilderWindow.cs:158)

UMA.Editors.UmaSlotBuilderWindow.OnGUI () (at Assets/UMA/Core/StandardAssets/UMA/Scripts/Editor/UmaSlotBuilderWindow.cs:94)

kenamis commented 5 years ago

What does your skeleton hierarchy look like? Do you have multiple root bones?

jjackson12172 commented 5 years ago

I'll import a new model from blender and see if the problem happens again.

jjackson12172 commented 5 years ago

Yup... My bone structure was wrong..My bad!!