playMaker

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

Gametinker

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Particle System Renderer: Animate Length Scale[SOLVED]
« on: July 03, 2014, 01: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 06, 2017, 11:16:55 PM by jeanfabre »

Mulbin

  • Junior Playmaker
  • **
  • Posts: 79
    • View Profile
Re: Particle System Renderer: Animate Length Scale
« Reply #1 on: September 18, 2017, 11:53:35 AM »
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: 12342
  • Official Playmaker Support
    • View Profile
Re: Particle System Renderer: Animate Length Scale
« Reply #2 on: September 20, 2017, 11:38:59 PM »
Hi,

 what version of Unity are you using?

Bye,

 Jean

Mulbin

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

Mulbin

  • Junior Playmaker
  • **
  • Posts: 79
    • View Profile
Re: Particle System Renderer: Animate Length Scale
« Reply #4 on: September 21, 2017, 10:21:06 AM »
Sorry, wrong project, this one is on 5.5.1

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Particle System Renderer: Animate Length Scale
« Reply #5 on: September 29, 2017, 12: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: 12342
  • Official Playmaker Support
    • View Profile
Re: Particle System Renderer: Animate Length Scale
« Reply #6 on: September 29, 2017, 12:55:50 AM »
Hi,

 ok, I got it, I could create one.

 I tested with the set property action and it works.



 Bye,

 Jean

krmko

  • Sr. Member
  • ****
  • Posts: 422
    • View Profile
    • Fat Pug Studio
Re: Particle System Renderer: Animate Length Scale
« Reply #7 on: October 30, 2017, 07: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, 07:09:35 AM by krmko »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Particle System Renderer: Animate Length Scale
« Reply #8 on: October 30, 2017, 10:50:08 PM »
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

krmko

  • Sr. Member
  • ****
  • Posts: 422
    • View Profile
    • Fat Pug Studio
Re: Particle System Renderer: Animate Length Scale
« Reply #9 on: October 31, 2017, 03: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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Particle System Renderer: Animate Length Scale
« Reply #10 on: November 01, 2017, 01: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

krmko

  • Sr. Member
  • ****
  • Posts: 422
    • View Profile
    • Fat Pug Studio
Re: Particle System Renderer: Animate Length Scale
« Reply #11 on: November 01, 2017, 04: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, 05:26:49 AM by krmko »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Particle System Renderer: Animate Length Scale
« Reply #12 on: November 01, 2017, 11:14:13 PM »
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

krmko

  • Sr. Member
  • ****
  • Posts: 422
    • View Profile
    • Fat Pug Studio
Re: Particle System Renderer: Animate Length Scale
« Reply #13 on: November 02, 2017, 02: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.

jeanfabre

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