Particle System Force Field Multiply Drag By Particle Velocity#
Miscellaneous / Particle System Force Field / Particle System Force Field Multiply Drag By Particle Velocity
Description#
Compares the Multiply Drag By Particle Velocity property of Particle System Force Field component to another value
Parameters#
| Name | Description |
|---|---|
| Particle System Force Field |
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("Particle System Force Field Multiply Drag By Particle Velocity")]
[Category("Miscellaneous/Particle System Force Field/Multiply Drag By Particle Velocity")]
[Description("Compares the Multiply Drag By Particle Velocity property of Particle System Force Field component to another value")]
[Image(typeof(IconParticleSystem), ColorTheme.Type.Teal)]
[Parameter("Particle System Force Field")]
[Serializable]
public class GenConditionBool_ParticleSystemForceField_CheckMultiplyDragByParticleVelocity : Condition
{
[SerializeField] private GetGameObject m_ParticleSystemForceField = new GetGameObject(
new GenTypeGameObject_ParticleSystemForceField()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Multiply Drag By Particle Velocity");
return $"{this.m_ParticleSystemForceField} {member}";
}
protected override bool Run(Args args)
{
ParticleSystemForceField component = this.m_ParticleSystemForceField.Get<ParticleSystemForceField>(args);
if (component == null) return false;
return component.multiplyDragByParticleVelocity;
}
}
}