# SetMaterial() not working unless you get close enough to prop's origin transform

**URL:** <https://forums.unrealengine.com/t/setmaterial-not-working-unless-you-get-close-enough-to-props-origin-transform/1330273>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [October 12, 2023, 11:20am UTC](https://forums.unrealengine.com/t/setmaterial-not-working-unless-you-get-close-enough-to-props-origin-transform/1330273 "2023-10-12T11:20:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [October 12, 2023, 11:20am UTC](https://forums.unrealengine.com/t/setmaterial-not-working-unless-you-get-close-enough-to-props-origin-transform/1330273/1 "2023-10-12T11:20:53Z")

</div>

### Please select what you are reporting on:

Unreal Editor for Fortnite

### What Type of Bug are you experiencing?

Stability

### Summary

After calling SetMaterial() on a teleported prop, it doesn’t do anything.

The prop material only gets updated when I get close to its origin point.  
I can confirm it is not related to time.

### Steps to Reproduce

I’m not sure it’s easily reproducible but :

- Use player instigated sequencers with cameras ?
- Place a prop far from your player
- Teleport it back to your player
- Call SetMaterial()

### Expected Result

SetMaterial() should work

### Observed Result

SetMaterial() doesn’t work

### Platform(s)

PC

### Additional Notes

see video : (gray ball in an overlay skin which is supposed to change material; SetMaterial() is only called once after taking teleporter)

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [October 12, 2023, 12:27pm UTC](https://forums.unrealengine.com/t/setmaterial-not-working-unless-you-get-close-enough-to-props-origin-transform/1330273/2 "2023-10-12T12:27:50Z")

</div>

Teleporting the player to the prop and then back to its position works but it’s really ugly :

```auto
Character.PutInStasis(stasis_args{})
                    if(Character.TeleportTo[SphereData.GetAttachableItem[].Item.GetTransform().Translation + vector3{Z := 500.0}, IdentityRotation()]):
    PlayerSkin := PrestigeShop.GetPlayerSkin(Player)
    SphereData.SkinProp.SetMaterial(PlayerSkin.GetMaterial())
    Sleep(0.5)

RandomTeleporter.Teleport(Player)
Character.ReleaseFromStasis()

```

---

<div class="post-metadata">

**Author:** ![Scalene17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Scalene17](https://forums.unrealengine.com/u/Scalene17)\
**Post date:** [September 25, 2024, 7:13pm UTC](https://forums.unrealengine.com/t/setmaterial-not-working-unless-you-get-close-enough-to-props-origin-transform/1330273/3 "2024-09-25T19:13:40Z")

</div>

Just barely ran into this, its still a problem.

---

<div class="post-metadata">

**Author:** ![ZeroShotBob](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zeroshotbob/32/1069797_2.png) [@ZeroShotBob](https://forums.unrealengine.com/u/ZeroShotBob)\
**Post date:** [January 7, 2025, 7:17pm UTC](https://forums.unrealengine.com/t/setmaterial-not-working-unless-you-get-close-enough-to-props-origin-transform/1330273/4 "2025-01-07T19:17:27Z")

</div>

I think it has something to do with moving objects. SetMaterial works sporadically on moving props. But works perfect if it is stationary.

---

<div class="post-metadata">

**Author:** ![Flak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flak/32/769441_2.png) [@Flak](https://forums.unrealengine.com/u/Flak)\
**Post date:** [January 7, 2025, 7:29pm UTC](https://forums.unrealengine.com/t/setmaterial-not-working-unless-you-get-close-enough-to-props-origin-transform/1330273/5 "2025-01-07T19:29:40Z")

</div>

If anyone is still experiencing this and feel it’s a bug, please start a new thread so we have the latest information. Thank you!

---

<div class="post-metadata">

**Author:** ![Flak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flak/32/769441_2.png) [@Flak](https://forums.unrealengine.com/u/Flak)\
**Post date:** [January 7, 2025, 7:29pm UTC](https://forums.unrealengine.com/t/setmaterial-not-working-unless-you-get-close-enough-to-props-origin-transform/1330273/6 "2025-01-07T19:29:56Z")

</div>


