0 like 0 dislike
Is it possible to get the version number of PopcornFX programmatically?

I am dealing with some issues introduced with version 2.9p5, so I have to rollback my PopcornFX version. I thought it would be useful in my logs to print out the version number of my plugins, so I can easily determine which plugins I am running at any given time.
by Lisk (170 points)

1 Answer

0 like 0 dislike
Pasting here what was said by email.

You can get the plugin's version with PKFxManager.m_PluginVersion. It's a string formatted as "<plugin version> for <unity version>"

If you're interested in the PopcornFX runtime version instead, you can use PKFxManager.m_CurrentVersionString which should be formatted as "<major>.<minor>.<revision>"

Please note the latter isn't initialized before PopcornFX is started.

by Raphael (10.6k points)