Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Text Get Text Anchor Pivot#

UI / Graphic / Text / Text Get Text Anchor Pivot

Description#

Compares the Get Text Anchor Pivot static method of Text class to another value

Parameters#

Name Description
Anchor
Value

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("Text Get Text Anchor Pivot")]
    [Category("UI/Graphic/Text/Get Text Anchor Pivot")]
    [Description("Compares the Get Text Anchor Pivot static method of Text class to another value")]
    
    [Image(typeof(IconUIText), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface, Label")]
    
    [Parameter("Anchor")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionVector2_Text_CheckGetTextAnchorPivot_1 : Condition
    {
        [SerializeField] private GetVector2 m_Value = new GetVector2();
        
        [SerializeField] private TextAnchor m_Anchor = default;
        
        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Text");
            string method = TextUtils.ThemeAsKeyword("Get Text Anchor Pivot");
            return $"{className} {method} ({this.m_Anchor}) = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            Vector2 value = Text.GetTextAnchorPivot(
                this.m_Anchor
            );
            
            return value == (Vector2) this.m_Value.Get(args);
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.