# UE5.1 Foliage have offset pivot point when selected

**URL:** <https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788>\
**Category:** UI\
**Tags:** Foliage-Tool, unreal-engine, editor, question\
**Created:** [December 6, 2022, 6:33pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788 "2022-12-06T18:33:48Z")\
**Posts on this page:** 13\
**Page:** 1

<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 6, 2022, 6:33pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/1 "2022-12-06T18:33:48Z")

</div>

Hey all,  
I’ve been struggling with this issue for awhile now and can’t seem to find a solution. When the foliage gets brushed in, selecting the foliage using the Select Foliage tool doesn’t center the pivot point on the selected object. Instead the pivot point is a good distance away. Here is an example:

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/d/9ad541c0656ea7d3d70850766817724c09b4cf79.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/d/9ad541c0656ea7d3d70850766817724c09b4cf79.mp4)

Does anyone know what could be going on or if this is even fixable?

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [December 6, 2022, 6:51pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/2 "2022-12-06T18:51:53Z")

</div>

If I had to guess, that is probably the center of the hierarchal instance. The foliage tool splits meshes into grids of instanced meshes. Is the behavior the same of you get up close to the mesh?

---

<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 6, 2022, 7:05pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/3 "2022-12-06T19:05:09Z")

</div>

I was thinking that could be the case but selecting foliage objects near each other results in varying pivot points, all of which aren’t the pivot of the hierarchal instance.

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [December 6, 2022, 7:07pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/4 "2022-12-06T19:07:46Z")

</div>

Very weird. And this is happening while you’re in the foliage editing mode?

---

<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 7, 2022, 3:18pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/5 "2022-12-07T15:18:45Z")

</div>

Yah, its definitely a weird one. Yes, this is happening in foliage editor mode.

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [December 7, 2022, 3:32pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/6 "2022-12-07T15:32:58Z")

</div>

If the foliage actor is part of a blueprint, make sure that the static mesh origin is properly centered in the BP. Also check to make sure any WPO effects in the material are set up properly and aren’t pushing the mesh away from it’s origin.

---

<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 7, 2022, 3:53pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/7 "2022-12-07T15:53:22Z")

</div>

Thanks for your help but it looks like enabling nanite on a static mesh thats being used as a foliage object breaks the folaige selection tool:

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/5/b451f84aa05bcc72c48aaeda4e58cda2e1848de0.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/5/b451f84aa05bcc72c48aaeda4e58cda2e1848de0.mp4)

---

<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 7, 2022, 4:02pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/8 "2022-12-07T16:02:31Z")

</div>

Looks like there are others who were having issues as well. Didn’t know it was a nanite issue so wasn’t even able to find these posts with my initial search:

> [@Nanite Foliage - Single selection broken](https://forums.unrealengine.com/t/nanite-foliage-single-selection-broken/696113):
>
> Hi. I noticed an issue using Nanite assets along the Foliage tool. Clicking onto a single instance of a foliage highlights it but actually select another one, as the pivot of the object and transform editing are applied on another instance. (cf screenshot) So far the workaround is to disable Nanite from the foliage assets, as it “fixes” the selecting and pivot issue, do the instance editing as wished and re-enable Nanite. Unless there is something else to actually fix this problem? Thanks f…

> [@Bug? Transform Tool "misplaced" when selecting foliage that has nanite enabled](https://forums.unrealengine.com/t/bug-transform-tool-misplaced-when-selecting-foliage-that-has-nanite-enabled/657548):
>
> 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.

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [December 7, 2022, 4:14pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/9 "2022-12-07T16:14:05Z")

</div>

Good find, good to know. I’ve yet to use Nanite on foliage.

---

<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:14pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/10 "2022-12-08T18:14:32Z")

</div>

If anyone else is having a similar issue, I found a workaround for now. When going to edit the foliage use console command “r.Nanite 0” which will disable nanite for all objects, then use “r.Nanite 1” to enable nanite again.

[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:** ![XavierAlbertStudio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xavieralbertstudio/32/1153633_2.png) [@XavierAlbertStudio](https://forums.unrealengine.com/u/XavierAlbertStudio)\
**Post date:** [April 27, 2023, 10:24pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/11 "2023-04-27T22:24:26Z")

</div>

Helped a lot, thanks 🙂

---

<div class="post-metadata">

**Author:** ![ianwburnette](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ianwburnette](https://forums.unrealengine.com/u/ianwburnette)\
**Post date:** [June 17, 2024, 8:57pm UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/12 "2024-06-17T20:57:44Z")

</div>

Nanite was the issue for me as well. I was trying to dynamically scale my foliage in a material, but the ObjectPosition node gives the nanite group’s position, not the individual foliage instance. It was working for other foliage, since I forgot I’d experimentally turned nanite on for this foliage type’s mesh 🙈

Here’s my shader graph, for anyone curious

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/7/8670bc9e48c7276a1de2a491abba6fdde054aa1b.jpeg)

In my case, I simply disabled nanite, since I wasn’t using it intentionally. If there’s a way to get this form of material-based scaling to work with nanite foliage, I don’t know what it is.

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [June 23, 2024, 7:45am UTC](https://forums.unrealengine.com/t/ue5-1-foliage-have-offset-pivot-point-when-selected/722788/13 "2024-06-23T07:45:43Z")

</div>

Use the node Component Pivot Point, or take a vector (0,0,0) and transform it from instance/particle space to world space and replace he object position node with it.
