Give SerialisedDrawableInfo sane defaults

This commit is contained in:
Dan Balasescu 2024-04-19 21:40:02 +09:00
parent 6f84467190
commit bac70da1a1
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -34,15 +34,15 @@ public sealed class SerialisedDrawableInfo
public float Rotation { get; set; }
public Vector2 Scale { get; set; }
public Vector2 Scale { get; set; } = Vector2.One;
public float? Width { get; set; }
public float? Height { get; set; }
public Anchor Anchor { get; set; }
public Anchor Anchor { get; set; } = Anchor.TopLeft;
public Anchor Origin { get; set; }
public Anchor Origin { get; set; } = Anchor.TopLeft;
/// <inheritdoc cref="ISerialisableDrawable.UsesFixedAnchor"/>
public bool UsesFixedAnchor { get; set; }