Cloth Enable Continuous Collision#
Physics 3D / Cloth / Cloth Enable Continuous Collision
Description#
Compares the Enable Continuous Collision property of Cloth component to another value
Parameters#
| Name | Description |
|---|---|
| Cloth |
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("Cloth Enable Continuous Collision")]
[Category("Physics 3D/Cloth/Enable Continuous Collision")]
[Description("Compares the Enable Continuous Collision property of Cloth component to another value")]
[Image(typeof(IconShirt), ColorTheme.Type.Lime)]
[Keywords("Physics, 3D, Kinematic")]
[Parameter("Cloth")]
[Serializable]
public class GenConditionBool_Cloth_CheckEnableContinuousCollision : Condition
{
[SerializeField] private GetGameObject m_Cloth = new GetGameObject(
new GenTypeGameObject_Cloth()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Enable Continuous Collision");
return $"{this.m_Cloth} {member}";
}
protected override bool Run(Args args)
{
Cloth component = this.m_Cloth.Get<Cloth>(args);
if (component == null) return false;
return component.enableContinuousCollision;
}
}
}