Add Array constant node to Visual Script and Anim Graph

This commit is contained in:
Wojciech Figat
2021-11-18 16:35:07 +01:00
parent cdcb2f8f7a
commit 502a67a75a
11 changed files with 408 additions and 134 deletions

View File

@@ -144,6 +144,16 @@ namespace FlaxEngine.GUI
}
}
/// <summary>
/// Initializes a new instance of the <see cref="Button"/> class.
/// </summary>
/// <param name="location">Position</param>
/// <param name="size">Size</param>
public Button(Vector2 location, Vector2 size)
: this(location.X, location.Y, size.X, size.Y)
{
}
/// <summary>
/// Called when mouse clicks the button.
/// </summary>
@@ -219,7 +229,7 @@ namespace FlaxEngine.GUI
Render2D.DrawRectangle(clientRect, borderColor);
// Draw text
Render2D.DrawText(_font.GetFont(), TextMaterial, _text, clientRect, textColor, TextAlignment.Center, TextAlignment.Center);
Render2D.DrawText(_font?.GetFont(), TextMaterial, _text, clientRect, textColor, TextAlignment.Center, TextAlignment.Center);
}
/// <inheritdoc />