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