Get ParticleSystem template

Problems building or running the engine, queries about how to use features etc.
Post Reply
OgreUser1
Gnoblar
Posts: 13
Joined: Tue Apr 24, 2012 8:21 am

Get ParticleSystem template

Post by OgreUser1 »

Hi,

Is there a way to get template which was used in specific ParticleSystem? Something like this(of course there is no GetTemplate() method in ParticleSystem class, just to explain what I'm looking for...):

Code: Select all

Ogre::ParticleSystem* particle = mSceneMgr->getParticleSystem("XXX");
Ogre::String templateName = particle->GetTemplate();


Searched in forum and google, but didn't find...
User avatar
suny
Greenskin
Posts: 137
Joined: Thu Mar 12, 2020 5:53 pm
x 60

Re: Get ParticleSystem template

Post by suny »

I'm bumping this old question, because I also looked in the documentation and didn't found anything.
S.
User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 449
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 156

Re: Get ParticleSystem template

Post by sercero »

Unfortunately, I don't know much about particle systems so I don't know how to get the template.

But, have you looked at the source?

Perhaps it is not very difficult to create the missing getter and submit a patch...
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Get ParticleSystem template

Post by paroj »

the template is just another ParticleSystem whose details are copied over to the instance on creation. The parent>child relationship is not tracked.
User avatar
suny
Greenskin
Posts: 137
Joined: Thu Mar 12, 2020 5:53 pm
x 60

Re: Get ParticleSystem template

Post by suny »

Yes, this is what I understood.
Thanks!
S.
Post Reply