Where is ParticleSystemRenderer.alignment?

Hi,

I’m attempting to create a ‘space dust’ particle system using stretched billboards and I want to control the direction that the stretched particles are pointing in. I tried using the camera scale property (as the camera follows the player) but this creates a number of problems when the camera is rotated.

The stretch scale of the particles is dependent on the velocity of the player object but the direction is currently random. I noticed that the documentation of the Scripting API includes a ParticleSystemRenderer.alignment property but this variable does not seem to be accessible in the editor. Does this variable exist and can I access it? If not, then does anyone know a means to control the alignment of the stretched billboard via scripting?

Thank you.

Hi,

OK, there didn’t seem to be a way to set the stretch alignment via scripting so I used a negative inherit velocity and velocity scale on the billboard stretch to move the particles backwards.