Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: shack on January 14, 2019, 03:48:14 PM

Title: Trail renderer or particle control?
Post by: shack 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)
Title: Re: Trail renderer or particle control?
Post by: jeanfabre 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
Title: Re: Trail renderer or particle control?
Post by: shack 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?
Title: Re: Trail renderer or particle control?
Post by: jeanfabre 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