Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Gametinker on July 03, 2014, 04:02:34 AM

Title: Particle System Renderer: Animate Length Scale[SOLVED]
Post by: Gametinker on July 03, 2014, 04:02:34 AM
Hello, I'm not sure what I am missing. When I use the Action Get Property on a Particle System I can't get the Renderer Length Scale value (http://docs.unity3d.com/ScriptReference/ParticleRenderer-lengthScale.html)

Do I need to modify the action to be able to get to this float or am I missing something else?

Thanks for the help,
~C
Title: Re: Particle System Renderer: Animate Length Scale
Post by: Mulbin on September 18, 2017, 02:53:35 PM
Sorry to bump such an old question, but I have exactly the same question!  Is there any way to effect these values at runtime?
Title: Re: Particle System Renderer: Animate Length Scale
Post by: jeanfabre on September 21, 2017, 02:38:59 AM
Hi,

 what version of Unity are you using?

Bye,

 Jean
Title: Re: Particle System Renderer: Animate Length Scale
Post by: Mulbin on September 21, 2017, 01:20:39 PM
I'm stuck on 5.4.2  updating breaks too much stuff.
Title: Re: Particle System Renderer: Animate Length Scale
Post by: Mulbin on September 21, 2017, 01:21:06 PM
Sorry, wrong project, this one is on 5.5.1
Title: Re: Particle System Renderer: Animate Length Scale
Post by: jeanfabre on September 29, 2017, 03:45:18 AM
Hi,

 uhm yeah, cause youa re using the old ParticleSystem, ParticleRenderer class is obsolete now, so it's really not recommanded to use this if you plan on your project to be maintained in the long term.

I am not even sure how to create a particleRenderer  actually. how do you do that? I need to this to be able to test an action I would do for this case.


 Bye,

 Jean
Title: Re: Particle System Renderer: Animate Length Scale
Post by: jeanfabre on September 29, 2017, 03:55:50 AM
Hi,

 ok, I got it, I could create one.

 I tested with the set property action and it works.

(https://i.imgur.com/69HIvYy.gif)

 Bye,

 Jean
Title: Re: Particle System Renderer: Animate Length Scale
Post by: Fat Pug Studio on October 30, 2017, 10:00:46 AM
Hi Jean,

is that on Unity 2017? Since i can't do basically any automation with set property in Unity 5.x., and i'd like to mess around with trails ans other stuff on runtime.
Title: Re: Particle System Renderer: Animate Length Scale
Post by: jeanfabre on October 31, 2017, 01:50:08 AM
Hi.

 this is obsolete, you should use the new particle system now. I tested on 5.6. So you can use setProperty as I did. Maybe you don't understand how to use SetProperty? you need to drag the component itself, note the object type read only field, if it doesn't say "UnityEngine.ParticleRenderer" then you got it set up wrong.


bye,

 Jean
Title: Re: Particle System Renderer: Animate Length Scale
Post by: Fat Pug Studio on October 31, 2017, 06:44:17 AM
Oh, i wasn't setting property on ParticleSystem, not ParticleSystemRenderer.

Anyway, is there a way to access stuff like trail length which is not obtainable by get property?
Title: Re: Particle System Renderer: Animate Length Scale
Post by: jeanfabre on November 01, 2017, 04:53:06 AM
Hi,

 I am confused now. Trail rendering is obsolete and only accessible on Particle System Renderer, so I am not sure what you are trying to achieve and what's not working for you because I could control it on my end. Maybe you could make a screencast showing exactly what in Unity you want to control?

 bye,

 Jean
Title: Re: Particle System Renderer: Animate Length Scale
Post by: Fat Pug Studio on November 01, 2017, 07:49:02 AM
Hi Jean,

i'm trying to manipulate Trails module parameters on runtime, but as far as i can see there's no trail properties (at least the ones i need, like lifetime) to access in neither particler animator/system/renderer/system renderer etc...

(https://s26.postimg.org/9zjechngp/screenshot_83.png)

As far as i can see it's not obsolete

https://docs.unity3d.com/ScriptReference/ParticleSystem.TrailModule.html

But i get only a handful of parameters by getting ParticleSystem component.
Title: Re: Particle System Renderer: Animate Length Scale
Post by: jeanfabre on November 02, 2017, 02:14:13 AM
Hi,

 ok, I see now.

I'll work on these and produce the required series of custom action to access the trail module.

 Please ping me early next week if I haven't done it by then :)

 Bye,

 Jean
Title: Re: Particle System Renderer: Animate Length Scale
Post by: Fat Pug Studio on November 02, 2017, 05:08:34 AM
Oh great, thanks. I will see how it's done when you do it and try to replicate it for other modules to share with others.
Title: Re: Particle System Renderer: Animate Length Scale
Post by: jeanfabre on November 03, 2017, 03:21:44 AM
Hi,

 Started on this: https://twitter.com/JeanAtPlayMaker/status/926348484713877504

Bye,

 Jean
Title: Re: Particle System Renderer: Animate Length Scale
Post by: Fat Pug Studio on November 03, 2017, 08:38:05 AM
You're the man  8) 8) 8)
Title: Re: Particle System Renderer: Animate Length Scale[SOLVED]
Post by: Fat Pug Studio on December 08, 2017, 07:38:55 AM
Hey Jean, any news on this? If you finished at least one action, i can do the rest based on it, i just need some guidelines from it.
Title: Re: Particle System Renderer: Animate Length Scale[SOLVED]
Post by: jeanfabre on December 11, 2017, 01:01:18 AM
Hi,

 I did is that not what you expected?

https://twitter.com/JeanAtPlayMaker/status/926348484713877504

Bye,

 Jean
Title: Re: Particle System Renderer: Animate Length Scale[SOLVED]
Post by: Fat Pug Studio on December 12, 2017, 08:55:07 AM
Yes it is, in what repo are they? I'm avoiding to update ecosystem from 0.4.8 until next project so i can't find it there.

edit: ok, i installed the new ecosystem, everything's there, thanks again :)