Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  NullReferenceException on Skinned Cloth Blueprint Generating
#1
screenshot:
[Image: fileProxy&user=102&sid=4uAtmfRs]

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.GUIUtilityLenguarocessEvent(Int32, IntPtr, Boolean&)


Attached Files Thumbnail(s)
   
Reply
#2
oh 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 Sonrisa


Attached Files Thumbnail(s)
   
Reply
#3
(20-11-2022, 12:24 AM)GinHuang Wrote: oh 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 Sonrisa

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,


Attached Files
.cs   ObiSkinnedClothBlueprint.cs (Size: 5.06 KB / Downloads: 8)
Reply