# Replacing debug cylinder with static mesh in custom teleport system

**URL:** <https://forums.unrealengine.com/t/replacing-debug-cylinder-with-static-mesh-in-custom-teleport-system/437922>\
**Category:** XR Development\
**Tags:** teleportation, VR-Vive, unreal-engine, spawning-actors, question\
**Created:** [November 19, 2018, 3:31pm UTC](https://forums.unrealengine.com/t/replacing-debug-cylinder-with-static-mesh-in-custom-teleport-system/437922 "2018-11-19T15:31:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![L1L](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@L1L](https://forums.unrealengine.com/u/L1L)\
**Post date:** [November 19, 2018, 3:31pm UTC](https://forums.unrealengine.com/t/replacing-debug-cylinder-with-static-mesh-in-custom-teleport-system/437922/1 "2018-11-19T15:31:57Z")

</div>

Hi Everyone!  
I am trying to create custom teleport system following tutorial: VIRTUAL REALITY WALKTHROUGHS WITH UNREAL ENGINE [academy.unrealengine.com/Class-Viewer/VR\_Arch](http://academy.unrealengine.com/Class-Viewer/VR_Arch)  
At the end of 3.2 video Matt explains that debug cylinder could be replaced with static mesh spawn, but it is out of the tutorial scope. Can anyone show me the coding for that or send a relevant link.

 ![259851-teleports.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/f/93f6c42300877d9b838aee08ecb38e26cd250162.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b2e1088c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b2e1088c](https://forums.unrealengine.com/u/anonymous_user_b2e1088c)\
**Post date:** [January 16, 2019, 5:37pm UTC](https://forums.unrealengine.com/t/replacing-debug-cylinder-with-static-mesh-in-custom-teleport-system/437922/2 "2019-01-16T17:37:43Z")

</div>

Hi! I don’t know if it is the best solution but I solved the problem creating an actor with a static mesh as component and spawning it instead of drawing the debug cylinder. I gave it the Teleport Loc as spawn transform location and for the rotation I set roll and pitch to zero and yaw as the world yaw of the camera, so the mesh can be rotate in the direction of the view. At the beginning of the tick I destroyed the spawned actor so that it can be respawned in a new position.  
I hope that it will be helpful 🙂

---

<div class="post-metadata">

**Author:** ![L1L](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@L1L](https://forums.unrealengine.com/u/L1L)\
**Post date:** [January 20, 2019, 7:41pm UTC](https://forums.unrealengine.com/t/replacing-debug-cylinder-with-static-mesh-in-custom-teleport-system/437922/3 "2019-01-20T19:41:32Z")

</div>

Thanks so much Feli! Would you be able to add couple of screenshots of your blueprints?

---

<div class="post-metadata">

**Author:** ![L1L](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@L1L](https://forums.unrealengine.com/u/L1L)\
**Post date:** [January 20, 2019, 7:41pm UTC](https://forums.unrealengine.com/t/replacing-debug-cylinder-with-static-mesh-in-custom-teleport-system/437922/4 "2019-01-20T19:41:57Z")

</div>

Thanks so much Feli! Would you be able to add couple of screenshots of your blueprints?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b2e1088c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b2e1088c](https://forums.unrealengine.com/u/anonymous_user_b2e1088c)\
**Post date:** [February 14, 2019, 4:44pm UTC](https://forums.unrealengine.com/t/replacing-debug-cylinder-with-static-mesh-in-custom-teleport-system/437922/5 "2019-02-14T16:44:29Z")

</div>

Here there are some screenshots:  
In the first one I replaced “Draw debug cylinder” with the spawn actor of my object cyliner (it is only a blueprint with a static mesh component that does nothing).

 ![268607-screenshot.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/3/8c38cdeb9f02bb678e7e06b3088013860e3b5b77.png)

In the event tick every cylinder objects are destroyed, so we can have only a cylinder in each frame.

![268608-screenshot2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/4/25447cd803c398c0e9c7096f3ef674eb37ccd0b8.png)

---

<div class="post-metadata">

**Author:** ![Patokid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Patokid](https://forums.unrealengine.com/u/Patokid)\
**Post date:** [June 5, 2019, 5:21pm UTC](https://forums.unrealengine.com/t/replacing-debug-cylinder-with-static-mesh-in-custom-teleport-system/437922/6 "2019-06-05T17:21:36Z")

</div>

How did you get cylinder in spawnactorclass? I can get actor, or staticmesh, but no cylinder.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b2e1088c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b2e1088c](https://forums.unrealengine.com/u/anonymous_user_b2e1088c)\
**Post date:** [June 6, 2019, 12:55pm UTC](https://forums.unrealengine.com/t/replacing-debug-cylinder-with-static-mesh-in-custom-teleport-system/437922/7 "2019-06-06T12:55:43Z")

</div>

I created a blueprint class called Cylinder and I put Actor as parent of it, so I can use it as actor and destroy it
