# Bug? Transform Tool "misplaced" when selecting foliage that has nanite enabled

**URL:** <https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548>\
**Category:** World Creation\
**Tags:** unreal-engine, UE5-0, Foliage, question\
**Created:** [September 27, 2022, 3:11pm UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548 "2022-09-27T15:11:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SunRoamer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SunRoamer](https://forums.unrealengine.com/u/SunRoamer)\
**Post date:** [September 27, 2022, 3:11pm UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/1 "2022-09-27T15:11:46Z")

</div>

Hello everyone,

I encountered a weird bug with the Transform Tool today (searches on google and the UE forums didn’t yield any similar threads).

I painted Nanite enabled rocks and branches with the Foliage tool - they don’t have any leaves, transparent bits or similar, so I expected no issues. They displayed properly and painting worked as usual. Eventually, I wanted to Foliage Select a single instance of one of these Nanite enabled Meshes to fine tune their placement.

 ![220927_Foliage-Bug_01.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/3/3a3b74b5e3ccc56fab82ce44957b9fa4e9460c46.jpeg)

UE5 highlights the one that I selected, but the Transform Tool appears for a different instance, instead. All transformations apply to this other, not highlighted Foliage Instance (that could potentially be miles across the map). While moving this wrongly selected instance around, the highlight also jumps between instances of the same Foliage Type. Obviously, this makes it almost impossible to select the correct instance that I want to modify.

Not: this happens both with Static Meshes dropped as-is in the Foliage Tool, as well as after they were saved as Foliage Types.

As soon as I disable Nanite for the Static Mesh that the Foliage Type uses, the Transform Tool persistently selects the correct instance again.

Is this a known issue? Has anyone been able to fix this? I’d like to use Nanite for these kinds of Meshes, but I also don’t want to lose the convenience of painting them as Foliage.

Thanks 🙂

(I guess a possible workaround would be to paint them as Nanite enabled Foliage and in the case I need to fine tune the placement of one of them I just place that one as a regular Static Mesh in the world instead of through the Foliage Tool… which will become a bit messy eventually, however).

---

<div class="post-metadata">

**Author:** ![CarloAlt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CarloAlt](https://forums.unrealengine.com/u/CarloAlt)\
**Post date:** [October 24, 2022, 7:27am UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/2 "2022-10-24T07:27:07Z")

</div>

In version 5.1 P2 the problem persists and has not been solved.

---

<div class="post-metadata">

**Author:** ![Kajiisan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kajiisan/32/443102_2.png) [@Kajiisan](https://forums.unrealengine.com/u/Kajiisan)\
**Post date:** [November 14, 2022, 7:27pm UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/3 "2022-11-14T19:27:18Z")

</div>

We have the same issue with 5.0.3 – And having an even bigger issue:

We have hundreds of objects and when I select one… it selects another one!  
Something is really off with the foliage selection. 😕

---

<div class="post-metadata">

**Author:** ![B-RIDE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@B-RIDE](https://forums.unrealengine.com/u/B-RIDE)\
**Post date:** [November 22, 2022, 8:03am UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/4 "2022-11-22T08:03:17Z")

</div>

I am having the same issue:(

---

<div class="post-metadata">

**Author:** ![BrutalSlay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrutalSlay](https://forums.unrealengine.com/u/BrutalSlay)\
**Post date:** [November 29, 2022, 7:32pm UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/5 "2022-11-29T19:32:30Z")

</div>

Same issue here on 5.1

---

<div class="post-metadata">

**Author:** ![Screamheart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Screamheart](https://forums.unrealengine.com/u/Screamheart)\
**Post date:** [December 5, 2022, 12:15am UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/6 "2022-12-05T00:15:08Z")

</div>

Same issue here… Any help?

---

<div class="post-metadata">

**Author:** ![Screamheart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Screamheart](https://forums.unrealengine.com/u/Screamheart)\
**Post date:** [December 5, 2022, 5:01pm UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/7 "2022-12-05T17:01:18Z")

</div>

The workaround is to turn off Nanite on all foliage. After you no longer need the Select tool you can turn Nanite back on for everything.

---

<div class="post-metadata">

**Author:** ![Nova1395](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nova1395](https://forums.unrealengine.com/u/Nova1395)\
**Post date:** [December 6, 2022, 6:16pm UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/8 "2022-12-06T18:16:25Z")

</div>

I wish I’d known that before… I too, was having issues with hundreds of foliage placed throughout the level, and the transform tool would appear in the wrong spots. I ended up deleting all the foliage types that were having issues (which meant deleting about 1,000 foliage placements that were hand-placed, and took several hours to do…).

Nonetheless, can confirm that disabling nanite and saving the mesh will immediately fix the issue.

---

<div class="post-metadata">

**Author:** ![onkele1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@onkele1](https://forums.unrealengine.com/u/onkele1)\
**Post date:** [December 7, 2022, 4:58am UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/9 "2022-12-07T04:58:54Z")

</div>

Happy to finally find I’m not the only one with this issue. Needs a fix ASAP.

Turning on Nanite after finish does seem to be the best workaround…

---

<div class="post-metadata">

**Author:** ![glex](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glex/32/88708_2.png) [@glex](https://forums.unrealengine.com/u/glex)\
**Post date:** [December 8, 2022, 6:19pm UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/10 "2022-12-08T18:19:47Z")

</div>

As Screamheart says, the current workaround is to turn off Nanite for all foliage then turn it back on. You can do that with console command “r.Nanite 0” to turn off nanite while you edit your foliage and then using “r.Nanite 1” to turn it back on. Its annoying but so far the easiest way around this bug that I found.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/6/936497acbb1239d8ef45b16b5766acd03dda88ec.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/6/936497acbb1239d8ef45b16b5766acd03dda88ec.mp4)

---

<div class="post-metadata">

**Author:** ![FatMozart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FatMozart](https://forums.unrealengine.com/u/FatMozart)\
**Post date:** [December 21, 2022, 5:30pm UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/11 "2022-12-21T17:30:35Z")

</div>

Same problem here, 5.1. Disabling and enabling nanite didn’t fix the problem.  
In my earlier test projects I didn’t have that issue. Also, after restarting I can’t even select any of the meshes.

---

<div class="post-metadata">

**Author:** ![Th\_Sozen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Th\_Sozen](https://forums.unrealengine.com/u/Th_Sozen)\
**Post date:** [January 4, 2023, 2:27am UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/12 "2023-01-04T02:27:03Z")

</div>

Hi, I have the same problem, I’m a recent Unreal user. But I can say that the foliage system is very important to scatter, for some singular plants I prefer to use the placement mesh.

Also, my foliage issue is worse because I’m working with large exterior scenes and the “delete” or “erase” command doesn’t work.

—\> However I found a temporary solution that convinces for the foliage scatter, like the “Erase Selected Foliage” panel I select the foliage I want to work and i paint with set the density to 0 using the “reapply” function.  
Even if you couldn’t select or manipulate with a gizmo that was never in the right place, it works for me.

I just hope there will not be suprise when i will open the project in different time.

 ![reapply_issue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/6/be62a5d58df7585f66ce7631ec7c37c144fe7aff.jpeg)

---

<div class="post-metadata">

**Author:** ![HamtX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HamtX](https://forums.unrealengine.com/u/HamtX)\
**Post date:** [January 17, 2023, 8:13am UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/13 "2023-01-17T08:13:52Z")

</div>

Worksss For ME!THANKS!

---

<div class="post-metadata">

**Author:** ![cycla4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cycla4](https://forums.unrealengine.com/u/cycla4)\
**Post date:** [March 23, 2023, 3:30pm UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/14 "2023-03-23T15:30:29Z")

</div>

March 23rd, issue still not fixed, can devs please check out the foliage instance classes and fix the depth search algos ☹

---

<div class="post-metadata">

**Author:** ![Geeky\_Game\_Guru](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/geeky_game_guru/32/639578_2.png) [@Geeky\_Game\_Guru](https://forums.unrealengine.com/u/Geeky_Game_Guru)\
**Post date:** [March 28, 2023, 1:17am UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/15 "2023-03-28T01:17:17Z")

</div>

Same issue here on my end too but with nanite trees! Except there’s a further problem for me.

For some reason some of my trees are morphing wildly, growing and shrinking like their wind effect is cranked up to an extreme. But the Static Meshes of those same trees I set down as an example don’t warp like this.

And it gets significantly worse the further away I paint. Like, the first bunch of trees that I paint are somewhat fine. But if I then paint trees on the opposite side of the map, they start undulating wildly, even shrinking into the ground and then growing to double their normal size. And this happens no matter where my initial paint is, so it doesn’t seem to be an origin-point issue. It’s like the first paint you place creates its own tiny origin point, and calculations get significantly worse once you paint away from it.

But as soon as I turn off nanite, everything is back to normal and no longer warping.

So while it seems that they’ve managed to add Nanite to trees, nanite does not work with the Foliage tool, only with manually placed static meshes of trees for some reason.

---

<div class="post-metadata">

**Author:** ![Geeky\_Game\_Guru](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/geeky_game_guru/32/639578_2.png) [@Geeky\_Game\_Guru](https://forums.unrealengine.com/u/Geeky_Game_Guru)\
**Post date:** [March 31, 2023, 2:52am UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/18 "2023-03-31T02:52:17Z")

</div>

After some playing around, it does seem like the weird warping I was getting while placing nanite foliage was indeed the wind effect it came with. So I just disabled the wind entirely, and it got rid of that strange growing and shrinking effect. Obviously that’s not ideal, but ah well, this was just a project to learn the system anyway. It could have been the assets I decided to use and not an issue with the system itself.

Though the strange selection issues seem to be universal, regardless of which assets are used.

---

<div class="post-metadata">

**Author:** ![PeacefulJim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeacefulJim](https://forums.unrealengine.com/u/PeacefulJim)\
**Post date:** [April 26, 2023, 2:31am UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/19 "2023-04-26T02:31:38Z")

</div>

Just wanted to add my experience with this. Using 5.1.1 and nanite enabled foliage is still misbehaving. The translate, rotate and scale tools all select incorrect instances. Disabling nanite on the foliage lets you select the correct foliage instance, and then you have to re-enable nanite afterwards.

---

<div class="post-metadata">

**Author:** ![Misncobre](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/misncobre/32/900243_2.png) [@Misncobre](https://forums.unrealengine.com/u/Misncobre)\
**Post date:** [May 25, 2023, 2:43am UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/20 "2023-05-25T02:43:12Z")

</div>

Have you ever tried turning off Nanite and is the wind still normal after turning it off, if it’s still not normal, it’s probably a matter of materials because the foliage Instance placement is special

---

<div class="post-metadata">

**Author:** ![MikeVwDriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MikeVwDriver](https://forums.unrealengine.com/u/MikeVwDriver)\
**Post date:** [June 10, 2023, 3:06am UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/21 "2023-06-10T03:06:38Z")

</div>

I encountered the same issue. I found a fix here: [[UE5.2][NANITE][BUG:GLITCH][HELP] - #3 by DofusGolmor](https://forums.unrealengine.com/t/ue5-2-nanite-bug-glitch-help/837613/3)

---

<div class="post-metadata">

**Author:** ![virtualHC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtualhc/32/1194710_2.png) [@virtualHC](https://forums.unrealengine.com/u/virtualHC)\
**Post date:** [July 17, 2023, 3:29pm UTC](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548/22 "2023-07-17T15:29:02Z")

</div>

I’ve been experiencing this issue since 5.0 and it is still present in 5.2. I have to disable Nanite in order to transform individual foliage elements, otherwise the gizmo appears and operates on a different instance than the selected one.

[Next page](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548.md?page=2)
