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