Layout Element Calculate Layout Input Horizontal#
UI / Layout / Layout Element / Layout Element Calculate Layout Input Horizontal
Description#
Executes the Calculate Layout Input Horizontal method on the Layout Element 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;
namespace VisualScript.Runtime
{
[Title("Layout Element Calculate Layout Input Horizontal")]
[Category("UI/Layout/Layout Element/Calculate Layout Input Horizontal")]
[Description("Executes the Calculate Layout Input Horizontal method on the Layout Element component")]
[Image(typeof(IconLayoutElement), ColorTheme.Type.TextLight)]
[Keywords("UI, Layout")]
[Serializable]
public class GenInstructionLayoutElement_CalculateLayoutInputHorizontal_0 : Instruction
{
[SerializeField] private GetGameObject m_LayoutElement = new GetGameObject(
new GenTypeGameObject_LayoutElement()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Calculate Layout Input Horizontal");
return $"{this.m_LayoutElement} {method}";
}
protected override Awaitable Run(Args args)
{
LayoutElement component = this.m_LayoutElement.Get<LayoutElement>(args);
if (component == null) return Done;
component.CalculateLayoutInputHorizontal();
return Done;
}
}
}