TMP Text Is Volumetric Text#
UI / Graphic / TMP Text / TMP Text Is Volumetric Text
Can Read
Can Write
Description#
The Is Volumetric Text property of the TMP Text 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]
[Set]
[Title("TMP Text Is Volumetric Text")]
[Category("UI/Graphic/TMP Text/Is Volumetric Text")]
[Description("The Is Volumetric Text property of the TMP Text component")]
[Image(typeof(IconUIText), ColorTheme.Type.Blue)]
[Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
[Serializable]
public class GenTypeBool_TMP_Text_IsVolumetricText : TypeBool
{
[SerializeField] private GetGameObject m_TMP_Text = new GetGameObject(
new GenTypeGameObject_TMP_Text()
);
public override bool GetPreview(GameObject source)
{
GameObject instance = this.m_TMP_Text.GetPreview(source);
if (instance == null) return default;
TMP_Text component = instance.GetComponent<TMP_Text>();
return component != null ? component.isVolumetricText : default;
}
public override bool Get(Args args)
{
TMP_Text instance = this.m_TMP_Text.Get<TMP_Text>(args);
return instance != null
? instance.isVolumetricText
: default;
}
public override void Set(bool value, Args args)
{
TMP_Text component = this.m_TMP_Text.Get<TMP_Text>(args);
if (component != null) component.isVolumetricText = (bool) value;
}
public override string ToString()
{
return $"{this.m_TMP_Text} Is Volumetric Text";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}