Pass const ref parameters as in parameters in C# bindings

_amend in parameters
This commit is contained in:
2025-12-06 00:01:28 +02:00
parent dde07bac8d
commit d7eebb699c
14 changed files with 29 additions and 19 deletions

View File

@@ -111,7 +111,7 @@ void TextRender::SetFontSize(float value)
}
}
void TextRender::SetLayoutOptions(TextLayoutOptions& value)
void TextRender::SetLayoutOptions(const TextLayoutOptions& value)
{
if (_layoutOptions != value)
{

View File

@@ -126,7 +126,7 @@ public:
/// <summary>
/// Sets the layout options. Layout is defined in local space of the object (on XY plane).
/// </summary>
API_PROPERTY() void SetLayoutOptions(TextLayoutOptions& value);
API_PROPERTY() void SetLayoutOptions(const TextLayoutOptions& value);
/// <summary>
/// Gets the axis=aligned bounding box of the text vertices in the local-space of the actor.