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

Graphic Pixel Adjust Point#

UI / Graphic / Graphic Pixel Adjust Point

Description#

Compares the Pixel Adjust Point method of Graphic component to another value

Parameters#

Name Description
Graphic
Point
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("Graphic Pixel Adjust Point")]
    [Category("UI/Graphic/Pixel Adjust Point")]
    [Description("Compares the Pixel Adjust Point method of Graphic component to another value")]
    
    [Image(typeof(IconBrush), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Graphic")]
    [Parameter("Point")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionVector2_Graphic_CheckPixelAdjustPoint_1 : Condition
    {
        [SerializeField] private GetGameObject m_Graphic = new GetGameObject(
            new GenTypeGameObject_Graphic()
        );
        
        [SerializeField] private GetVector2 m_Value = new GetVector2();
        
        [SerializeField] private GetVector2 m_Point = new GetVector2();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Pixel Adjust Point");
            string parameters = $"({this.m_Point})";
            return $"{this.m_Graphic} {method} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            Graphic component = this.m_Graphic.Get<Graphic>(args);
            if (component == null) return false;
            
            Vector2 value = component.PixelAdjustPoint(
                (Vector2) this.m_Point.Get(args)
            );
            
            return value == (Vector2) this.m_Value.Get(args);
        }
    }
}

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