Skip to content

Commit 0a01a78

Browse files
committed
fix: Fixed entities accidentally having a z scale of 0
1 parent be5130b commit 0a01a78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/LDtkUnity/Editor/Builders/LDtkBuilderEntity.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ private void ScaleEntity()
125125

126126
//modify by the resized entity scaling from LDtk
127127
Vector3 newScale = _entityObj.transform.localScale;
128-
newScale.Scale(_entityComponent.ScaleFactor);
128+
newScale.x *= _entityComponent.ScaleFactor.x;
129+
newScale.y *= _entityComponent.ScaleFactor.y;
129130
_entityObj.transform.localScale = newScale;
130131
}
131132

0 commit comments

Comments
 (0)