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