---
tags:
    - "Effect"
---

# Particle System Random Seed

[Effects](../index.md) / [Particle System](index.md) / **Particle System Random Seed**

## Description

Compares the Random Seed property of Particle System component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Particle System |  |
| Compare |  |
| Value |  |

## Code

```cs
// <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 Random Seed")]
    [Category("Effects/Particle System/Random Seed")]
    [Description("Compares the Random Seed property of Particle System component to another value")]
    
    [Image(typeof(IconParticleSystem), ColorTheme.Type.Blue)]
    [Keywords("Effect")]
    
    [Parameter("Particle System")]
    [Parameter("Compare")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionInteger_ParticleSystem_CheckRandomSeed : Condition
    {
        [SerializeField] private GetGameObject m_ParticleSystem = new GetGameObject(
            new GenTypeGameObject_ParticleSystem()
        );
        
        [SerializeField] private CompareNumber m_Compare = new CompareNumber();
        
        [SerializeField] private GetInteger m_Value = new GetInteger();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Random Seed");
            return $"{this.m_ParticleSystem} {member} {this.m_Compare} {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            ParticleSystem component = this.m_ParticleSystem.Get<ParticleSystem>(args);
            if (component == null) return false;
            
            return this.m_Compare.Compare(component.randomSeed, (uint) this.m_Value.Get(args));
        }
    }
}


```

