Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to avoid saving mesh to scene file
#2
(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,
Reply


Messages In This Thread
How to avoid saving mesh to scene file - by imtzo - 22-09-2023, 10:16 PM
RE: How to avoid saving mesh to scene file - by josemendez - 26-09-2023, 07:22 AM