TextMeshPro - Text (UI) Get Modified Material#
UI / Graphic / TextMeshPro - Text (UI) / TextMeshPro - Text (UI) Get Modified Material
Can Read
Cannot Write
Description#
Returns the execution of Get Modified Material method on the TextMeshPro - Text (UI) component
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
{
[Get]
[Title("TextMeshPro - Text (UI) Get Modified Material")]
[Category("UI/Graphic/TextMeshPro - Text (UI)/Get Modified Material")]
[Description("Returns the execution of Get Modified Material method on the TextMeshPro - Text (UI) component")]
[Image(typeof(IconUIText), ColorTheme.Type.Blue)]
[Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
[Serializable]
public class GenTypeMaterial_TextMeshProUGUI_GetModifiedMaterial_1 : TypeMaterial
{
[SerializeField] private GetGameObject m_TextMeshProUGUI = new GetGameObject(
new GenTypeGameObject_TextMeshProUGUI()
);
[SerializeField] private GetMaterial m_BaseMaterial = new GetMaterial();
public override Material Get(Args args)
{
TextMeshProUGUI component = this.m_TextMeshProUGUI.Get<TextMeshProUGUI>(args);
if (component == null) return default;
Material value = (Material) component.GetModifiedMaterial(
(Material) this.m_BaseMaterial.Get(args)
);
return value;
}
public override string ToString()
{
return $"{this.m_TextMeshProUGUI} Get Modified Material ({this.m_BaseMaterial})";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}