# \[SCENE GRAPH\] Interactable Component ignores the entities transform/location if its set on the same tick

**URL:** <https://forums.unrealengine.com/t/scene-graph-interactable-component-ignores-the-entities-transform-location-if-its-set-on-the-same-tick/2356765>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, bug-report, fortnite\
**Created:** [February 25, 2025, 6:43am UTC](https://forums.unrealengine.com/t/scene-graph-interactable-component-ignores-the-entities-transform-location-if-its-set-on-the-same-tick/2356765 "2025-02-25T06:43:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 25, 2025, 6:43am UTC](https://forums.unrealengine.com/t/scene-graph-interactable-component-ignores-the-entities-transform-location-if-its-set-on-the-same-tick/2356765/1 "2025-02-25T06:43:21Z")

</div>

### Summary

If a new entity is created and includes an interactable component, and the transform changes immediately when those components are added, the entity will move accordingly however the Interact button will stay on the parent entity location.

### Please select what you are reporting on:

Verse

### What Type of Bug are you experiencing?

Verse

### Steps to Reproduce

1. Enable Scene Graph System in the Project Settings
2. Create a new .verse file, and paste inside the contents found in the additional notes then Build Verse Code (Ctrl+Shift+B)
3. Place down an entity in the world and give it a mesh\_component and a “MainComponent”
4. Load into the project in the fortnite client, once inside Interact with the entity
5. It should spawn a new entity on `Translation:=vector3{Forward:=-1033.0,Right:=256.0,Up:=54.0}}`
6. Approach the entity and see that the interact prompt is not where the entity itself is.
7. Remove the `#` from line 59 ( Line containing Sleep(4.0) )
8. Re-Build verse code and interact with the main component, 4 seconds later the entity should teleport to those coordinates but this time the interact prompt will also be there

### Expected Result

Interactable Component moves along with the entity

### Observed Result

Interactable Component wont move along with the entity if done immediately after OnBegin Simulation

### Platform(s)

windows

### Upload an image

 ![ThumbnailEDC.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/a/02a4bc977c2b87bfad4550884d22c935f62b06ab.png)

### Video

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/6/226d9a0446a20b870258e8feb0b148fb5d54dfe5.jpeg "Scene Graph Interactable Component Bug") ](https://www.youtube.com/watch?v=I2VLNsE-4iM)

### Additional Notes

```auto
using { /UnrealEngine.com }
using { /UnrealEngine.com/Temporary/SceneGraph }
using { /Verse.org/Simulation }
using { /Verse.org/SpatialMath }
MainComponent<public>:=class<final_super>(component):

    # Runs when the component should start simulating in a running game.
    OnBeginSimulation<override>():void =
        # Run OnBeginSimulation from the parent class before
        # running this component's OnBeginSimulation logic
        (super:)OnBeginSimulation()

        # TODO: Place logic to run when the component starts simulating here
        Print("OnBeginSimulation")

    # Runs when the component should start simulating in a running game.
    # Can be suspended throughout the lifetime of the component. Suspensions
    # will be automatically cancelled when the component is disposed or the
    # game ends.( __verse_0xE781F91D_Forward=-1033.718977,__ verse_0x296C864F_Right=256.020600,__verse_0x5782DB13_Up=53.999999)
    OnSimulate<override>()<suspends>:void =
        # TODO: Place simple suspends logic to run for this component here
        Print("OnSimulate")
        InteractableComponent:=interactable_component{Entity:=Entity}
        Entity.AddComponents(array{InteractableComponent})
        InteractableComponent.SucceededEvent.Subscribe(OnPressed)

    OnPressed(Agent:agent):void=
        NewEntity:=entity{}
        NewEntity.AddComponents(array{SubComponent{Entity:=NewEntity}})
        if(SIMentity:=Entity.GetSimulationEntity[]):
            SIMentity.AddEntities(array{NewEntity})

SubComponent<public>:=class<final_super>(component):

    # Runs when the component should start simulating in a running game.
    OnBeginSimulation<override>():void =
        # Run OnBeginSimulation from the parent class before
        # running this component's OnBeginSimulation logic
        (super:)OnBeginSimulation()

        # TODO: Place logic to run when the component starts simulating here
        Print("OnBeginSimulation")

    # Runs when the component should start simulating in a running game.
    # Can be suspended throughout the lifetime of the component. Suspensions
    # will be automatically cancelled when the component is disposed or the
    # game ends.
    OnSimulate<override>()<suspends>:void =
        # TODO: Place simple suspends logic to run for this component here
        Print("OnSimulate")
        MeshComponent:=BasicShapes.cube{Entity:=Entity}
        TransformComponent:=transform_component{Entity:=Entity}
        InteractableComponent:=interactable_component{Entity:=Entity}
        Entity.AddComponents(array{TransformComponent})
        Entity.AddComponents(array{MeshComponent})
        Entity.AddComponents(array{InteractableComponent})
        #Sleep(4.0)
        TransformComponent.SetGlobalTransform(transform{Translation:=vector3{Forward:=-1033.0,Right:=256.0,Up:=54.0}})

```

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 25, 2025, 6:45am UTC](https://forums.unrealengine.com/t/scene-graph-interactable-component-ignores-the-entities-transform-location-if-its-set-on-the-same-tick/2356765/2 "2025-02-25T06:45:38Z")

</div>

Project Files:  
[ProjectFiles.zip](https://forums.unrealengine.com/uploads/short-url/nTTqYzw9mQVYiAcadWLkYAUJ3Ze.zip) (3.9 MB)

Also after checking it seems to be related to setting the transform immediately after adding the components themselves and not related to OnSimulate directly.

Eg even though I added a 4s sleep before setting the global transform+adding the components it would still happen

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/c/5bc038590d06a077f3a36b2831b9657017a9e4fa.png)

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [June 6, 2025, 11:38pm UTC](https://forums.unrealengine.com/t/scene-graph-interactable-component-ignores-the-entities-transform-location-if-its-set-on-the-same-tick/2356765/3 "2025-06-06T23:38:24Z")

</div>

Bump

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/5/175a995122b441c8de2b7022f29a53c49d984a10.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 24, 2025, 6:43am UTC](https://forums.unrealengine.com/t/scene-graph-interactable-component-ignores-the-entities-transform-location-if-its-set-on-the-same-tick/2356765/4 "2025-08-24T06:43:27Z")

</div>

This topic was automatically closed after 180 days. New replies are no longer allowed.
