Set Particle System Force Field Multiply Drag By Particle Size#
Miscellaneous / Particle System Force Field / Set Particle System Force Field Multiply Drag By Particle Size
Description#
Sets the Multiply Drag By Particle Size 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 Size")]
[Category("Miscellaneous/Particle System Force Field/Multiply Drag By Particle Size")]
[Description("Sets the Multiply Drag By Particle Size 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_SetMultiplyDragByParticleSize : 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 Size");
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.multiplyDragByParticleSize = (bool) this.m_Value.Get(args);
return Done;
}
}
}