TMP Text Set Text#
UI / Graphic / TMP Text / TMP Text Set Text SourceText, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7
Description#
Executes the Set Text method on the TMP Text component
Parameters#
| Name | Description |
|---|---|
| Source Text | |
| Arg 0 | |
| Arg 1 | |
| Arg 2 | |
| Arg 3 | |
| Arg 4 | |
| Arg 5 | |
| Arg 6 | |
| Arg 7 |
Code#
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>
using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.UI;
using TMPro;
namespace VisualScript.Runtime
{
[Title("TMP Text Set Text")]
[Category("UI/Graphic/TMP Text/Set Text", "SourceText, Arg0, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7")]
[Description("Executes the Set Text method on the TMP Text component")]
[Image(typeof(IconUIText), ColorTheme.Type.Blue)]
[Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
[Parameter("Source Text")]
[Parameter("Arg 0")]
[Parameter("Arg 1")]
[Parameter("Arg 2")]
[Parameter("Arg 3")]
[Parameter("Arg 4")]
[Parameter("Arg 5")]
[Parameter("Arg 6")]
[Parameter("Arg 7")]
[Serializable]
public class GenInstructionTMP_Text_SetText_9_StringSourceText_FloatArg0_FloatArg1_FloatArg2_FloatArg3_FloatArg4_FloatArg5_FloatArg6_FloatArg7 : Instruction
{
[SerializeField] private GetGameObject m_TMP_Text = new GetGameObject(
new GenTypeGameObject_TMP_Text()
);
[SerializeField] private GetString m_SourceText = new GetString();
[SerializeField] private GetNumber m_Arg0 = new GetNumber();
[SerializeField] private GetNumber m_Arg1 = new GetNumber();
[SerializeField] private GetNumber m_Arg2 = new GetNumber();
[SerializeField] private GetNumber m_Arg3 = new GetNumber();
[SerializeField] private GetNumber m_Arg4 = new GetNumber();
[SerializeField] private GetNumber m_Arg5 = new GetNumber();
[SerializeField] private GetNumber m_Arg6 = new GetNumber();
[SerializeField] private GetNumber m_Arg7 = new GetNumber();
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Set Text");
return $"{this.m_TMP_Text} {method} ({this.m_SourceText}, {this.m_Arg0}, {this.m_Arg1}, {this.m_Arg2}, {this.m_Arg3}, {this.m_Arg4}, {this.m_Arg5}, {this.m_Arg6}, {this.m_Arg7})";
}
protected override Awaitable Run(Args args)
{
TMP_Text component = this.m_TMP_Text.Get<TMP_Text>(args);
if (component == null) return Done;
component.SetText(
(string) this.m_SourceText.Get(args),
(float) this.m_Arg0.Get(args),
(float) this.m_Arg1.Get(args),
(float) this.m_Arg2.Get(args),
(float) this.m_Arg3.Get(args),
(float) this.m_Arg4.Get(args),
(float) this.m_Arg5.Get(args),
(float) this.m_Arg6.Get(args),
(float) this.m_Arg7.Get(args)
);
return Done;
}
}
}