Check Sphere#
Physics / Check Sphere Position, Radius, LayerMask, QueryTriggerInteraction
Can Read
Cannot Write
Description#
Returns the execution of Check Sphere 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("Check Sphere")]
[Category("Physics/Check Sphere", "Position, Radius, LayerMask, QueryTriggerInteraction")]
[Description("Returns the execution of Check Sphere static method on the Physics class")]
[Image(typeof(IconPhysics), ColorTheme.Type.Lime)]
[Serializable]
public class GenTypeBool_Physics_CheckSphere_4_Vector3Position_FloatRadius_IntLayerMask_QueryTriggerInteractionQueryTriggerInteraction : TypeBool
{
[SerializeField] private GetVector3 m_Position = new GetVector3();
[SerializeField] private GetNumber m_Radius = new GetNumber();
[SerializeField] private GetInteger m_LayerMask = new GetInteger();
[SerializeField] private QueryTriggerInteraction m_QueryTriggerInteraction = default;
public override bool Get(Args args)
{
bool value = (bool) Physics.CheckSphere(
(Vector3) this.m_Position.Get(args),
(float) this.m_Radius.Get(args),
(int) this.m_LayerMask.Get(args),
this.m_QueryTriggerInteraction
);
return value;
}
public override string ToString()
{
return $"Physics Check Sphere ({this.m_Position}, {this.m_Radius}, {this.m_LayerMask}, {this.m_QueryTriggerInteraction})";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}