Rotate particleFX from code

Hi!

I can flip my sprites using sprite.set_hflip, but how do I flip a particleFX?
In particle editor I can rotate the Emittor to “flip it”, but how do I access the Emittor variables from the code?
Should I use set_constant?

I want to change the rotation from 90 to -90 from the script ( https://www.dropbox.com/s/bqrzs9c3p94gs35/Screen%20Shot%202015-11-15%20at%2020.19.24.png?dl=0 )

You can rotate the particle fx component in the editor. If you need to rotate from script, put the emitter in a game object and rotate that.

it worked, however there is an inconsistency? In the editor it seems like you rotate in degrees, but in the code you have to use radians?

Isn’t that a good inconsistency? In user exposed fields you most probably want it to be degrees because it is intuitive to most people. But in math code it is something you really never want to work with. There radians is the logical choice. Especially since all trigonometry functions like sin and tan takes radians. And changing them to work with degrees would be horrible.

Yes, that is by design. See @FredrikMalmer’s post.

Ah I see! Yes that sounds reasonable!

@FredrikMalmer @sicher