Description
The SetNamedValue
method allows you to assign a Vector3
value to a named parameter within a particle system. This can be useful for dynamically adjusting particle properties such as position, velocity, or any other vector-based attribute that the particle system supports.
Usage
To use the SetNamedValue
method, you need to have an instance of the SceneParticles
class. Call the method with the name of the parameter you wish to set and the Vector3
value you want to assign to it.
Example
// Example of using SetNamedValue
SceneParticles particles = new SceneParticles();
// Set a named value for the particle system
particles.SetNamedValue("velocity", new Vector3(1.0f, 0.0f, 0.0f));
// This sets the 'velocity' parameter of the particle system to a vector pointing along the x-axis.