Bug / Crash NullReferenceException on Skinned Cloth Blueprint Generating - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html) +--- Thread: Bug / Crash NullReferenceException on Skinned Cloth Blueprint Generating (/thread-3655.html) |
NullReferenceException on Skinned Cloth Blueprint Generating - GinHuang - 19-11-2022 screenshot: unity3d version:2020.3.36f1c1 Project: new empty 3D project that uses Unity's built-in renderer. use Resources: Obj sampleResources "Man_trenchcoat.fbx" step: 1.Creat a skinned Cloth Blueprint 2.drag "Body_basemesh 1" to "InputMesh" 3.Click "Generate" 4.got this exception exception: NullReferenceException: Object reference not set to an instance of an object Obi.ObiClothBlueprint+<CreateDistanceConstraints>d__3.MoveNext () (at Assets/Obi/Scripts/Cloth/Blueprints/ObiClothBlueprint.cs:125) Obi.ObiSkinnedClothBlueprint+<Initialize>d__2.MoveNext () (at Assets/Obi/Scripts/Cloth/Blueprints/ObiSkinnedClothBlueprint.cs:87) Obi.ObiActorBlueprint+<Generate>d__59.MoveNext () (at Assets/Obi/Scripts/Common/Blueprints/ObiActorBlueprint.cs:282) Obi.CoroutineJob+<Start>d__15.MoveNext () (at Assets/Obi/Scripts/Common/Utils/Coroutines/CoroutineJob.cs:99) UnityEngine.Debug:LogException(Exception) Obi.<Start>d__15:MoveNext() (at Assets/Obi/Scripts/Common/Utils/Coroutines/CoroutineJob.cs:108) Obi.EditorCoroutine:ShowCoroutineProgressBar(String, IEnumerator&) (at Assets/Obi/Scripts/Common/Utils/Coroutines/EditorCoroutine.cs:21) Obi.ObiActorBlueprintEditor:Generate() (at Assets/Obi/Editor/Common/Blueprints/ObiActorBlueprintEditor.cs:131) Obi.ObiActorBlueprintEditor:OnInspectorGUI() (at Assets/Obi/Editor/Common/Blueprints/ObiActorBlueprintEditor.cs:163) UnityEngine.GUIUtilityrocessEvent(Int32, IntPtr, Boolean&) RE: NullReferenceException on Skinned Cloth Blueprint Generating - GinHuang - 20-11-2022 oh I known what the problem was. Obj Cloth 6.5 Obi\Scripts\Cloth\Blueprints\ObiSkinnedClothBlueprint.cs line 79 the variable “colorizer“ is uninitialized So this version cannot create skinned cloth blueprints RE: NullReferenceException on Skinned Cloth Blueprint Generating - josemendez - 20-11-2022 (20-11-2022, 12:24 AM)GinHuang Wrote: oh I known what the problem was. Hi GinHuang, Thanks for reporting this! Attached to this post you can find a patched version of ObiSkinnedClothBlueprint.cs. Replace the one in your project with it (Obi/Scripts/Cloth/Blueprints/ObiSkinnedClothBlueprint.cs), that should solve the issue. Will upload the patch to the store asap. kind regards, |