# UpdateInstanceTransform() works in PIE but not Packaged builds in 4.17

**URL:** <https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, UE4, question, Blueprint, CPP\
**Created:** [September 6, 2017, 6:29pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916 "2017-09-06T18:29:17Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 6, 2017, 6:29pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/1 "2017-09-06T18:29:17Z")

</div>

What should happen:  
When you left click on a rock, it should despawn, then respawn after 5 seconds. This works in play in editor but not packaged builds.

In packaged builds, it removes ALL instances, then respawns that ONE instance which you deleted.

Build Type: Source (Vanilla)  
Build version: 4.17

Detailed description of the issue:  
Please see the attached project for reproduction. It’s very simple, only has three places where code is placed.

1. MyCharacter.h/.cpp
2. ThirdPersonCharacter blueprint
3. Level blueprint

> **[MEGA](https://mega.nz/#!WJNw1SJK!FLlDhhOXV5vmZGbHmM9JH-8X5SiZ0GnSgZ75t63rxoQ)**
>
> MEGA provides free cloud storage with convenient and powerful always-on privacy. Claim your free 20GB now

first, play in editor, hit a rock with left click, it should respawn after 5 seconds  
then, right click =\> launch game on uproject, and launch server using the “Run Test Server” shortcut i made

The shortcut might have to be pointed towards your path/engine build location.

System Specs: Windows 10, GTX 1080, i5 CPU 3.4ghz

No errors, or crashes, simply different behavior in PIE vs Packaged builds.

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 6, 2017, 6:47pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/2 "2017-09-06T18:47:57Z")

</div>

Also, if you type “show collision” in the console ( ` ) it will also remove ALL instances, not just the one you deleted.

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 6, 2017, 7:43pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/3 "2017-09-06T19:43:04Z")

</div>

The same issue happens in single player as well.

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 6, 2017, 9:53pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/4 "2017-09-06T21:53:39Z")

</div>

Just tested in 4.15, this bug does not exist in 4.15, so it’s definitely a issue in 4.17 I haven’t tried 4.16 yet

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 7, 2017, 12:40am UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/5 "2017-09-07T00:40:55Z")

</div>

Here is a video tutorial of how to create the issue: [- YouTube](https://youtu.be/XtP9rFvfu5s)

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 7, 2017, 3:09pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/6 "2017-09-07T15:09:03Z")

</div>

IT works in 4.16.3, but not in 4.17.1.

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 8, 2017, 4:07am UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/7 "2017-09-08T04:07:42Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/8/c687b280726fe9eea504eb268a248682a3633fc1.jpeg "UE4.17 Instanced Static Mesh Bug in Standalone") ](https://www.youtube.com/watch?v=ja1kc9c24Fo)

Added another, more detailed, yet simplified tutorial

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 11, 2017, 10:23pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/8 "2017-09-11T22:23:03Z")

</div>

Epic? Any answers?

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 12, 2017, 12:21pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/9 "2017-09-12T12:21:42Z")

</div>

Any answers?

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 13, 2017, 5:20pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/10 "2017-09-13T17:20:49Z")

</div>

Any answers?

---

<div class="post-metadata">

**Author:** ![Ninjin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ninjin](https://forums.unrealengine.com/u/Ninjin)\
**Post date:** [September 13, 2017, 10:08pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/11 "2017-09-13T22:08:20Z")

</div>

This ain’t Discord BDoom, you won’t get a fast reply here, especially if you want some Epic mod. I heard the guy who made the changes is trying to fix ISMC, which you can see in other questions about ISMC for 4.17. Let’s see what he comes up with for the hotfix. Chances the mods here know if this bug is in relation with the other bugs are pretty slim (except the guy who is doing the fix, got some time left). You can also download v4.18 from source and see if it’s already fixed there. Other than that, chill down \<3.

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 14, 2017, 1:15pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/12 "2017-09-14T13:15:42Z")

</div>

Wait, 4.18 is actually out now? Oh ■■■■

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 17, 2017, 9:56pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/13 "2017-09-17T21:56:50Z")

</div>

Just tested 4.18-staging this bug is still active in engine

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_565e242f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_565e242f](https://forums.unrealengine.com/u/anonymous_user_565e242f)\
**Post date:** [September 18, 2017, 7:45pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/14 "2017-09-18T19:45:30Z")

</div>

Hi

A fix was made for 4.18.

---

<div class="post-metadata">

**Author:** ![poke1103](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@poke1103](https://forums.unrealengine.com/u/poke1103)\
**Post date:** [September 19, 2017, 1:15pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/15 "2017-09-19T13:15:34Z")

</div>

Hey I just want to validate something with you. The behavior in PIE is the expected behavior that we should be having in standalone and packaged builds, right? Sorry for being a ■■■■.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_565e242f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_565e242f](https://forums.unrealengine.com/u/anonymous_user_565e242f)\
**Post date:** [September 19, 2017, 1:31pm UTC](https://forums.unrealengine.com/t/updateinstancetransform-works-in-pie-but-not-packaged-builds-in-4-17/403916/16 "2017-09-19T13:31:32Z")

</div>

In general term, it depend, but in this case, previously, PIE == Editor thus there is special handling for static meshes instancing. So the real flow is to check in standalone i.e -game or packaged build to know the true behavior. My change will change the current default behavior to be both the same and if user want full optimization they’ll have to turn it back on on their component which will result in the current behavior you see.

To give more context on this, normally if instances shouldn’t be changed, they are not cache CPU side, only on GPU post initialization, so all operations you do will ultimately cause what you experiences, guard were added with log to notify users of what is happening, and it wont change the data.

Hope it clarify things 🙂
