26-09-2023, 07:22 AM
(22-09-2023, 10:16 PM)imtzo Wrote: Hello,
How can I get Obi Rope to not persist the mesh within the scene? Every time I open/save my scene containing Obi Rope, the scene contains changed lines from the mesh apparently being regenerated/updated, which becomes cumbersome to discard in order to keep source control commits clean.
Thanks!
Hi,
The rope mesh is not persisted within the scene. You can check this in ObiRopeExtrudedRenderer.cs, the mesh is declared as:
Code:
[HideInInspector] [NonSerialized] public Mesh extrudedMesh;
Being NonSerialized, it won't be saved to the scene.
I can't identify any changes being made to the scene when opening/saving scenes that use ropes. Could you be more specific as to what lines are being picked up by your source control system?
kind regards,