Canvas Group Is Raycast Location Valid#
UI / Layout / Canvas Group / Canvas Group Is Raycast Location Valid
Can Read
Cannot Write
Description#
Returns the execution of Is Raycast Location Valid method on the Canvas 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("Canvas Group Is Raycast Location Valid")]
[Category("UI/Layout/Canvas Group/Is Raycast Location Valid")]
[Description("Returns the execution of Is Raycast Location Valid method on the Canvas Group component")]
[Image(typeof(IconCanvasGroup), ColorTheme.Type.TextLight)]
[Keywords("UI, Layout")]
[Serializable]
public class GenTypeBool_CanvasGroup_IsRaycastLocationValid_2 : TypeBool
{
[SerializeField] private GetGameObject m_CanvasGroup = new GetGameObject(
new GenTypeGameObject_CanvasGroup()
);
[SerializeField] private GetVector2 m_Sp = new GetVector2();
[SerializeField] private GetGameObject m_EventCamera = new GetGameObject();
public override bool Get(Args args)
{
CanvasGroup component = this.m_CanvasGroup.Get<CanvasGroup>(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_CanvasGroup} Is Raycast Location Valid ({this.m_Sp}, {this.m_EventCamera})";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}