Skip to content

Commit e7f948e

Browse files
mos9527K0lb3
authored andcommitted
Mesh - Read m_CookingOptions when Unity version is 2022.1 or higher
1 parent 2dfd6b0 commit e7f948e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎UnityPy/classes/Mesh.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ def __init__(self, reader):
494494
m_CollisionVertexCount = reader.read_int()
495495

496496
self.m_MeshUsageFlags = reader.read_int()
497+
498+
if version >= (2022, 1): # 2022.1 and up
499+
self.m_CookingOptions = reader.read_int()
500+
497501
if version >= (5,): # 5.0 and up
498502
self.m_BakedConvexCollisionMesh = reader.read_bytes(reader.read_int())
499503
reader.align_stream()

0 commit comments

Comments
 (0)