Topic: UFE and Particle Playground: Share a "Gradient" Class, dont play well

Tried adding Particle Playground into my project with UFE and get an error:

error CS1061: Type 'Gradient' does not contain a definition for "Set Keys".   

I noticed that there is a Gradient script in the Community Scripts folder in UFE that if I attempt to modify or delete causes several other errors in UFE. The gradient in ParticlePlayground is buried deep in one of their .cs files, and modify that didnt work well for me.

Any thoughts on how to address this issue, apparently theres only room for ONE GRADIENT smile 

Thanks!

Share

Thumbs up Thumbs down

Re: UFE and Particle Playground: Share a "Gradient" Class, dont play well

Yeah, this is a common problem when two asset creators don't use their own name space wink.

The best approach is to rename one of them and also rename all instances of its usage.  Just be sure you change the correct files for renaming.  Easiest method to ensure this is to only have UFE installed first (remove Particle Playground), rename all the Gradient references (maybe call it UFEGradient?), then once that's all working fine you can install Particle Playground again and any duplicate issues are resolved.

Share

Thumbs up Thumbs down