# Setting Relative Position Of Children Causes Root Transform To Glitch Out

**URL:** <https://forums.unrealengine.com/t/setting-relative-position-of-children-causes-root-transform-to-glitch-out/357440>\
**Category:** Character & Animation\
**Tags:** relative, parent, bug, child, unreal-engine, transform, question\
**Created:** [May 14, 2016, 5:39pm UTC](https://forums.unrealengine.com/t/setting-relative-position-of-children-causes-root-transform-to-glitch-out/357440 "2016-05-14T17:39:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diddykonga](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Diddykonga](https://forums.unrealengine.com/u/Diddykonga)\
**Post date:** [May 14, 2016, 5:39pm UTC](https://forums.unrealengine.com/t/setting-relative-position-of-children-causes-root-transform-to-glitch-out/357440/1 "2016-05-14T17:39:05Z")

</div>

Hierarchy:  
ActorBlueprint -  
Root (SceneComponent) -  
Skeleton (SpriterSkeletonComponent / SceneComponent) -  
Sprite1-  
Sprite2-  
etc…

This is the way I have my Blueprint set up.

```
Sprite.SpriteComponent = NewObject<UPaperSpriteComponent>( Owner, FName(*Obj.Name));
Sprite.SpriteComponent->bWantsBeginPlay = true;
Sprite.SpriteComponent->RegisterComponent();
Sprite.SpriteComponent->AttachTo(this);

```

This is the code the SpriterSkeletonComponent calls to create the Sprites.

```
Sprite.SpriteComponent->SetRelativeTransform(NewTransform);

```

This is the code that sets each Sprites Relative Transform to their NewTransform each frame.

**To produce the glitch, all i have to do is Play In Editor, Select either the Root or the SpriterSkeletonComponent of the blueprint, and manually edit it’s transform, as soon as i press enter, the Root’s Transform glitches out, setting it to completely random values. Pressing the Set to Default arrow in the Root’s transform causes the glitch aswell.**

After doing some testing, if i change the Root’s location in blueprints, or code, then it works just fine, the glitch only occurs when i manually change the transform of the parents(Root/SkeletonComponent) inside the details panel.

## There’s only two possible reasons for this happening.

**1. I’m somehow not creating the Sprites correctly, or not parenting them correctly.**

**2. This is a bug, and isn’t directly caused from my code.**

Heres a video to showcase the problem : [https://vid.me/ab1b](https://vid.me/ab1b)

If anyone else has had this issue or can help, i would appreciate it!

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [May 20, 2016, 3:00pm UTC](https://forums.unrealengine.com/t/setting-relative-position-of-children-causes-root-transform-to-glitch-out/357440/2 "2016-05-20T15:00:30Z")

</div>

Hello,

Could you please provide the full code that you are using when you are experiencing this issue? I’d like to ensure we have the same setup.

Also, if needed, are there any additional steps I need to follow to reproduce this in a clean project?

Thank you

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [May 25, 2016, 1:42pm UTC](https://forums.unrealengine.com/t/setting-relative-position-of-children-causes-root-transform-to-glitch-out/357440/3 "2016-05-25T13:42:02Z")

</div>

Hello,

I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day
