Rect Mask 2D Is Raycast Location Valid#
UI / Mask / Rect Mask 2D / Rect Mask 2D Is Raycast Location Valid
Can Read
Cannot Write
Description#
Returns the execution of Is Raycast Location Valid method on the Rect Mask 2D 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("Rect Mask 2D Is Raycast Location Valid")]
[Category("UI/Mask/Rect Mask 2D/Is Raycast Location Valid")]
[Description("Returns the execution of Is Raycast Location Valid method on the Rect Mask 2D component")]
[Image(typeof(IconRectMask2D), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenTypeBool_RectMask2D_IsRaycastLocationValid_2 : TypeBool
{
[SerializeField] private GetGameObject m_RectMask2D = new GetGameObject(
new GenTypeGameObject_RectMask2D()
);
[SerializeField] private GetVector2 m_Sp = new GetVector2();
[SerializeField] private GetGameObject m_EventCamera = new GetGameObject();
public override bool Get(Args args)
{
RectMask2D component = this.m_RectMask2D.Get<RectMask2D>(args);
if (component == null) return default;
bool value = (bool) component.IsRaycastLocationValid(
(Vector2) this.m_Sp.Get(args),
(Camera) this.m_EventCamera.Get<Camera>(args)
);
return value;
}
public override string ToString()
{
return $"{this.m_RectMask2D} Is Raycast Location Valid ({this.m_Sp}, {this.m_EventCamera})";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}