playMaker

Author Topic: Trail renderer or particle control?  (Read 2271 times)

shack

  • Playmaker Newbie
  • *
  • Posts: 9
Trail renderer or particle control?
« on: January 14, 2019, 03:48:14 PM »
Hey, So I was using the trail renderer to create tire marks when a car drifts in my game. However, I do not know how to control it within playmaker. Is there a way to do so?I only want the trail to begin (or be visible) during certain parameters (car is drifting/not facing forward)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Trail renderer or particle control?
« Reply #1 on: January 15, 2019, 07:41:42 AM »
Hi,

 you simply instantiate the trails when you want them to show up, that would be enough isn't it?

 Bye,

 Jean

shack

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Trail renderer or particle control?
« Reply #2 on: February 01, 2019, 01:33:46 PM »
But how? There is no trail Action. How can i tie the trail emission to a key press? Do I have to use the particle system or can i use the trail renderer?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Trail renderer or particle control?
« Reply #3 on: February 04, 2019, 03:35:02 AM »
Hi,

using a trail, I would experiment with the following:

- set the time of the trail to 0 when you don't want it, and set it to the time you need when you want to show it, bring it back to 0 to remove it.

else, you'll need to use particles and try the trail module: https://docs.unity3d.com/Manual/PartSysTrailsModule.html

Bye,

 Jean