Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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
-
Sorry to bump such an old question, but I have exactly the same question! Is there any way to effect these values at runtime?
-
Hi,
what version of Unity are you using?
Bye,
Jean
-
I'm stuck on 5.4.2 updating breaks too much stuff.
-
Sorry, wrong project, this one is on 5.5.1
-
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
-
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
-
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.
-
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
-
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?
-
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
-
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.
-
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
-
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.
-
Hi,
Started on this: https://twitter.com/JeanAtPlayMaker/status/926348484713877504
Bye,
Jean
-
You're the man 8) 8) 8)
-
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.
-
Hi,
I did is that not what you expected?
https://twitter.com/JeanAtPlayMaker/status/926348484713877504
Bye,
Jean
-
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 :)