Whenever the cloth goes out of camera, when the parent object that it’s attached to move back in frame the cloth sometimes is not there. Even weirder, if I pause the game and select the parent object the cloth reappears.
I tried multiple things already:
Turned off ‘don’t renderer when offscreen’
Changed attachment tear factor from 0.2 to 999 to 0.
Took of two way interaction
turned off all acceleration external or random
turned off gravity.
Nothing fixed it. The parent object is a rigidbody that is moved by applying a constant force. Presumably the problem is in the renderering not the transform, but I’m not really sure. Any ideas?
EDIT:
Alright I tried one more thing, setting the parent object to kinematic (So they wouldn’t move) then having my character move so that they were put out of screen, then when I moved so they were back in view, the problem didn’t occur. However, I do need them to move, looking at some other questions I heard someone talking about having the object only move with FixedUpdate (or LateUpdate, anyway, the one for physics only) so I’ll try that next, as it seems like now it’s more of a movement rather then a rendering problem.
LAST EDIT:
Okay yep that fixed it. Just edited this so that anyone who has this problem knows the solution: If your Interactive cloth that’s parent to an object that moves via a rigidbody is disappearing when the object goes offscreen (Meaning it does not return when the object returns to the screen), the problem is that the rigidbody is having it’s forces affected in an Update() that is not FixedUpdate(). Anyway, anything done to physics should be in FixedUpdate regardless, so you know, do that.
OKAY MAYBE NOT:
Alright now I’m a bit confused I was only testing it on one guy and switching it to FixedUpdate seemed to fixed the problem, but once I unfroze the other two guys and it started doing it again (Maybe it already was before that but just not as severely?). Yep just tested it again with just one guy and FixedUpdate, it’s still doing it. Absolutely no clue now.