The Radius
property of the ParticleAttractor
class defines the effective range within which particles are attracted towards the target GameObject
. This property is a float
value representing the radius of influence in world units.
The Radius
property of the ParticleAttractor
class defines the effective range within which particles are attracted towards the target GameObject
. This property is a float
value representing the radius of influence in world units.
To use the Radius
property, you can set it to a desired value to control how far the particle attraction effect should reach. A larger radius will attract particles from a greater distance, while a smaller radius will limit the effect to a closer proximity.
// Example of setting the Radius property ParticleAttractor attractor = new ParticleAttractor(); attractor.Radius = 10.0f; // Set the radius to 10 units // This will attract particles within a 10-unit radius to the target GameObject