Closed jjackson12172 closed 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:
Applied all mesh and materials as required to create slot. Check Marked - Binary, Create Overlay, Add to Library
Click "Create Slot Button"
UMA Creates (2) Files Only 1.) BinaryAssetWrapper 2.) SkinnedMesh
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)
What does your skeleton hierarchy look like? Do you have multiple root bones?
I'll import a new model from blender and see if the problem happens again.
Yup... My bone structure was wrong..My bad!!
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:
Applied all mesh and materials as required to create slot. Check Marked - Binary, Create Overlay, Add to Library
Click "Create Slot Button"
UMA Creates (2) Files Only 1.) BinaryAssetWrapper 2.) SkinnedMesh
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)