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