playMaker

Author Topic: Particle System Renderer: Animate Length Scale[SOLVED]  (Read 5290 times)

Gametinker

  • Playmaker Newbie
  • *
  • Posts: 1
Particle System Renderer: Animate Length Scale[SOLVED]
« 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
« Last Edit: November 07, 2017, 01:16:55 AM by jeanfabre »

Mulbin

  • Junior Playmaker
  • **
  • Posts: 90
Re: Particle System Renderer: Animate Length Scale
« Reply #1 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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Particle System Renderer: Animate Length Scale
« Reply #2 on: September 21, 2017, 02:38:59 AM »
Hi,

 what version of Unity are you using?

Bye,

 Jean

Mulbin

  • Junior Playmaker
  • **
  • Posts: 90
Re: Particle System Renderer: Animate Length Scale
« Reply #3 on: September 21, 2017, 01:20:39 PM »
I'm stuck on 5.4.2  updating breaks too much stuff.

Mulbin

  • Junior Playmaker
  • **
  • Posts: 90
Re: Particle System Renderer: Animate Length Scale
« Reply #4 on: September 21, 2017, 01:21:06 PM »
Sorry, wrong project, this one is on 5.5.1

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Particle System Renderer: Animate Length Scale
« Reply #5 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Particle System Renderer: Animate Length Scale
« Reply #6 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.



 Bye,

 Jean

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Particle System Renderer: Animate Length Scale
« Reply #7 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.
« Last Edit: October 30, 2017, 10:09:35 AM by krmko »
Available for Playmaker work

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Particle System Renderer: Animate Length Scale
« Reply #8 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

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Particle System Renderer: Animate Length Scale
« Reply #9 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?
Available for Playmaker work

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Particle System Renderer: Animate Length Scale
« Reply #10 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

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Particle System Renderer: Animate Length Scale
« Reply #11 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...



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.
« Last Edit: November 01, 2017, 08:26:49 AM by krmko »
Available for Playmaker work

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Particle System Renderer: Animate Length Scale
« Reply #12 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

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Particle System Renderer: Animate Length Scale
« Reply #13 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.
Available for Playmaker work

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Particle System Renderer: Animate Length Scale
« Reply #14 on: November 03, 2017, 03:21:44 AM »