Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to avoid saving mesh to scene file
#3
(26-09-2023, 07:22 AM)josemendez Wrote: 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?

Sure, I see sets of changed lines in the diff, with the name "extrudedMesh", which looks to be the name ObiRopeLineRenderer uses.

Interestingly, the Object ID shown for each Mesh is not shown elsewhere in the file, so it seems that while they are not being referenced, they are being saved in the file (leaked?). (I am not a .scene file expert, but this is my understanding of how they work.)

In case it's important, my ObiRope objects are defined in prefabs, and I'm using instances of this prefab within my scene. There is one mesh removed/deleted for each instance (two instances at present). Could this be related?

Further details below. Thanks!


Lines removed:

Code:
--- !u!43 &454250562
Mesh:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_Name: extrudedMesh
  serializedVersion: 10
  m_SubMeshes:
  - serializedVersion: 2
...<snipped, but includes very lengthy fields for _typelessdata and m_IndexBuffer>

Lines added:

Code:
--- !u!43 &1380844300
Mesh:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_Name: extrudedMesh
  serializedVersion: 10
  m_SubMeshes:
...<snipped, but includes very lengthy fields for _typelessdata and m_IndexBuffer>


Object setup:

   
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 imtzo - 29-09-2023, 02:23 AM