Configurable Joint Configured In World Space#
Physics 3D / Joint / Configurable Joint / Configurable Joint Configured In World Space
Description#
Compares the Configured In World Space property of Configurable Joint component to another value
Parameters#
| Name | Description |
|---|---|
| Configurable 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("Configurable Joint Configured In World Space")]
[Category("Physics 3D/Joint/Configurable Joint/Configured In World Space")]
[Description("Compares the Configured In World Space property of Configurable Joint component to another value")]
[Image(typeof(IconJoint), ColorTheme.Type.Lime, typeof(BadgeCog))]
[Keywords("Physics, 3D")]
[Parameter("Configurable Joint")]
[Serializable]
public class GenConditionBool_ConfigurableJoint_CheckConfiguredInWorldSpace : Condition
{
[SerializeField] private GetGameObject m_ConfigurableJoint = new GetGameObject(
new GenTypeGameObject_ConfigurableJoint()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Configured In World Space");
return $"{this.m_ConfigurableJoint} {member}";
}
protected override bool Run(Args args)
{
ConfigurableJoint component = this.m_ConfigurableJoint.Get<ConfigurableJoint>(args);
if (component == null) return false;
return component.configuredInWorldSpace;
}
}
}