x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to paint material where actor moves?

Simply put, I am trying to figure out a way to paint a material/texture wherever an actor steps, like a trail. After a certain amount of time, that texture would revert to whatever it was before the actor moved over it. I haven't the faintest idea how to go about this, any ideas?

Product Version: UE 4.20
Tags:
more ▼

asked Feb 25 '19 at 08:42 PM in Blueprint Scripting

avatar image

Aggroed
15 4 2 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi Aggroed,

The best way I've found to do this is by using a trail of decals. Decals project a material (which can have a texture) onto the ground, so that you don't have to mess with the actual texture of the ground. Keep in mind that decals only project in one direction & need to be close to the surface of projection.

  1. Create a decal material with the texture that you want.

  2. Spawn a set number of decals into a queue depending on how long you want the trail.

  3. Update the location of the next decal in the queue each tick so that you don't have to keep re-spawning new ones.

  4. Optional Run a timeline animation for interesting effects like growing and shrinking

more ▼

answered Feb 25 '19 at 09:05 PM

avatar image

kevincvanhorn
63 3 4 8

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question