Get Ignore Layer Collision#
Physics 3D / Physics / Get Ignore Layer Collision
Description#
Compares the Get Ignore Layer Collision static method of Physics class to another value
Parameters#
| Name | Description |
|---|---|
| Layer 1 | |
| Layer 2 |
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
{
[Title("Get Ignore Layer Collision")]
[Category("Physics 3D/Physics/Get Ignore Layer Collision")]
[Description("Compares the Get Ignore Layer Collision static method of Physics class to another value")]
[Image(typeof(IconPhysics), ColorTheme.Type.Lime)]
[Parameter("Layer 1")]
[Parameter("Layer 2")]
[Serializable]
public class GenConditionBool_Physics_CheckGetIgnoreLayerCollision_2 : Condition
{
[SerializeField] private GetInteger m_Layer1 = new GetInteger();
[SerializeField] private GetInteger m_Layer2 = new GetInteger();
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Physics");
string method = TextUtils.ThemeAsKeyword("Get Ignore Layer Collision");
return $"{className} {method} ({this.m_Layer1}, {this.m_Layer2})";
}
protected override bool Run(Args args)
{
bool value = Physics.GetIgnoreLayerCollision(
(int) this.m_Layer1.Get(args),
(int) this.m_Layer2.Get(args)
);
return value;
}
}
}