Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  NullReference
#3
(29-01-2019, 10:29 AM)josemendez Wrote: Hi there!

Thanks for reporting this! Add the following code:
Code:
base.Awake();

in line 79 of ObiCloth.cs. This will ensure the Awake() method of ObiClothBase.cs is called and the topology set up properly for the copied object. The method should look like this:
Code:
public void Awake(){
base.Awake();
skinnedMeshRenderer = GetComponent<SkinnedMeshRenderer>();

FindRootboneBindpose();
SetupAnimatorController();
}

Thanks, now it works!
Reply


Messages In This Thread
NullReference - by Evgenius - 29-01-2019, 09:15 AM
RE: NullReference - by josemendez - 29-01-2019, 10:29 AM
RE: NullReference - by Evgenius - 29-01-2019, 11:29 AM