Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting sleeping particles
#7
(11-12-2020, 01:58 AM)ibbybn Wrote: Commenting out the line and then toggling on/off the ObiCloth component in editor works. Nice!
However, I'm a bit stumped that when toggling it via script in there's a glitch ( to their rest position? ) for one frame. Any ideas?
Already tried in Update and LateUpdate and changing the Script Execution Order of the fixed late updater vs my clothtoggler. Odd.

Not able to get this to happen :/. As soon as you deactivate the cloth, the mesh stops being updated (this usually happens in LateUpdate()) and just sits there to be rendered by the MeshRenderer. Should be no reason for it to return to its rest position for one frame. Can you share the code you're using?
Reply


Messages In This Thread
Scripting sleeping particles - by ibbybn - 07-12-2020, 03:22 PM
RE: Scripting sleeping particles - by josemendez - 08-12-2020, 09:32 AM
RE: Scripting sleeping particles - by josemendez - 08-12-2020, 01:13 PM
RE: Scripting sleeping particles - by ibbybn - 10-12-2020, 11:20 PM
RE: Scripting sleeping particles - by josemendez - 11-12-2020, 08:21 AM
RE: Scripting sleeping particles - by ibbybn - 11-12-2020, 01:58 AM
RE: Scripting sleeping particles - by josemendez - 11-12-2020, 08:23 AM
RE: Scripting sleeping particles - by ibbybn - 11-12-2020, 10:38 AM