Skip to content

Commit 93fcc00

Browse files
committed
Added defaults to transform components
1 parent b908090 commit 93fcc00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/EcsRx.Plugins.Transforms/Components/Transform2DComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ public class Transform2DComponent : IComponent
88
/// <summary>
99
/// The transform of the component
1010
/// </summary>
11-
public Transform2D Transform { get; set; }
11+
public Transform2D Transform { get; set; } = new Transform2D();
1212
}
1313
}

src/EcsRx.Plugins.Transforms/Components/TransformComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ public class TransformComponent : IComponent
88
/// <summary>
99
/// The transform of the component
1010
/// </summary>
11-
public Transform Transform { get; set; }
11+
public Transform Transform { get; set; } = new Transform();
1212
}
1313
}

0 commit comments

Comments
 (0)