Find foliage instance from an index?

Does anybody know if there is a way to find an instance by it’s index?

Specifically with instanced foliage actors, we can get an instances index when we overlap/trace for it, but suppose you want to cache that index so that you can do something with it later. I cannot find any way to find the same instance again.

What I am trying to do is change some material parameters when player is near foliage, however without being able to cache the index, I can’t use on end overlap, etc to apply an effect to the same instance.

To describe in a few steps:

  • Begin overlap - get a foliage instance and do something to it (can do)
  • End overlap - do something to the same instance(s) that were previously overlapped (cannot do)

answer here:
Micro-tutorial: Per instance foliage logic/effects - Unreal Engine / Programming & Scripting - Unreal Engine Forums