Grid Layout Group Min Height#
UI / Layout / Grid Layout Group / Grid Layout Group Min Height
Can Read
Cannot Write
Description#
The Min Height property of the Grid Layout Group 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
{
[Get]
[Title("Grid Layout Group Min Height")]
[Category("UI/Layout/Grid Layout Group/Min Height")]
[Description("The Min Height property of the Grid Layout Group component")]
[Image(typeof(IconGridLayoutGroup), ColorTheme.Type.TextLight)]
[Keywords("UI, Layout")]
[Serializable]
public class GenTypeNumber_GridLayoutGroup_MinHeight : TypeNumber
{
[SerializeField] private GetGameObject m_GridLayoutGroup = new GetGameObject(
new GenTypeGameObject_GridLayoutGroup()
);
public override double GetPreview(GameObject source)
{
GameObject instance = this.m_GridLayoutGroup.GetPreview(source);
if (instance == null) return default;
GridLayoutGroup component = instance.GetComponent<GridLayoutGroup>();
return component != null ? component.minHeight : default;
}
public override double Get(Args args)
{
GridLayoutGroup instance = this.m_GridLayoutGroup.Get<GridLayoutGroup>(args);
return instance != null
? instance.minHeight
: default;
}
public override string ToString()
{
return $"{this.m_GridLayoutGroup} Min Height";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}