Linecast#
Physics / Linecast Start, End, LayerMask, QueryTriggerInteraction
Can Read
Cannot Write
Description#
Returns the execution of Linecast static method on the Physics class
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;
namespace VisualScript.Runtime
{
[Get]
[Title("Linecast")]
[Category("Physics/Linecast", "Start, End, LayerMask, QueryTriggerInteraction")]
[Description("Returns the execution of Linecast static method on the Physics class")]
[Image(typeof(IconPhysics), ColorTheme.Type.Lime)]
[Serializable]
public class GenTypeBool_Physics_Linecast_4_Vector3Start_Vector3End_IntLayerMask_QueryTriggerInteractionQueryTriggerInteraction : TypeBool
{
[SerializeField] private GetVector3 m_Start = new GetVector3();
[SerializeField] private GetVector3 m_End = new GetVector3();
[SerializeField] private GetInteger m_LayerMask = new GetInteger();
[SerializeField] private QueryTriggerInteraction m_QueryTriggerInteraction = default;
public override bool Get(Args args)
{
bool value = (bool) Physics.Linecast(
(Vector3) this.m_Start.Get(args),
(Vector3) this.m_End.Get(args),
(int) this.m_LayerMask.Get(args),
this.m_QueryTriggerInteraction
);
return value;
}
public override string ToString()
{
return $"Physics Linecast ({this.m_Start}, {this.m_End}, {this.m_LayerMask}, {this.m_QueryTriggerInteraction})";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}