Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

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);
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.