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

Image Is Raycast Location Valid#

UI / Graphic / Image / Image Is Raycast Location Valid

Description#

Compares the Is Raycast Location Valid method of Image component to another value

Parameters#

Name Description
Image
Screen Point
Event Camera

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("Image Is Raycast Location Valid")]
    [Category("UI/Graphic/Image/Is Raycast Location Valid")]
    [Description("Compares the Is Raycast Location Valid method of Image component to another value")]
    
    [Image(typeof(IconUIImage), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Image")]
    [Parameter("Screen Point")]
    [Parameter("Event Camera")]
    
    [Serializable]
    public class GenConditionBool_Image_CheckIsRaycastLocationValid_2 : Condition
    {
        [SerializeField] private GetGameObject m_Image = new GetGameObject(
            new GenTypeGameObject_Image()
        );
        
        [SerializeField] private GetVector2 m_ScreenPoint = new GetVector2();
        
        [SerializeField] private GetGameObject m_EventCamera = new GetGameObject();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Is Raycast Location Valid");
            string parameters = $"({this.m_ScreenPoint}, {this.m_EventCamera})";
            return $"{this.m_Image} {method}";
        }
        
        protected override bool Run(Args args)
        {
            Image component = this.m_Image.Get<Image>(args);
            if (component == null) return false;
            
            bool value = component.IsRaycastLocationValid(
                (Vector2) this.m_ScreenPoint.Get(args),
                (Camera) this.m_EventCamera.Get<Camera>(args)
            );
            
            return value;
        }
    }
}

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