# GWorld, what's it all about?

**URL:** <https://forums.unrealengine.com/t/gworld-whats-it-all-about/427267>\
**Category:** Plugins\
**Tags:** world, unreal-engine, Plugins, question, execute-command\
**Created:** [June 13, 2018, 9:34am UTC](https://forums.unrealengine.com/t/gworld-whats-it-all-about/427267 "2018-06-13T09:34:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndelchen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ndelchen](https://forums.unrealengine.com/u/ndelchen)\
**Post date:** [June 13, 2018, 9:34am UTC](https://forums.unrealengine.com/t/gworld-whats-it-all-about/427267/1 "2018-06-13T09:34:01Z")

</div>

I am trying to write a plugin that executes another plugin, specifically the Stereo Panoramic Capture Tool.  
I thought about just calling the needed console commands via c++.

Now the problem is that the capture tool seems to use the GWorld pointer to access the current gamemode and the player controller. When I’m executing the plugin through my plugin GWorld seems to neither have a valid player controller nor a gamemode, even though I am executing the plugin while the game is running. Therefore the execution of the tool is not working.

I guess running my plugin is somehow overwriting GWorld? I’m just wondering what GWorld actually is about. The documentation just says it is some global world pointer and that one should not use it, but nothing more really. Could someone help me out here to understand what’s going on?

---

<div class="post-metadata">

**Author:** ![ndelchen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ndelchen](https://forums.unrealengine.com/u/ndelchen)\
**Post date:** [June 20, 2018, 9:29am UTC](https://forums.unrealengine.com/t/gworld-whats-it-all-about/427267/2 "2018-06-20T09:29:56Z")

</div>

still struggling… anyone?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c503c434](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c503c434](https://forums.unrealengine.com/u/anonymous_user_c503c434)\
**Post date:** [June 20, 2018, 9:44am UTC](https://forums.unrealengine.com/t/gworld-whats-it-all-about/427267/3 "2018-06-20T09:44:01Z")

</div>

This is actual documentation of [GWorld](http://api.unrealengine.com/INT/API/Runtime/Engine/Engine/UWorld/index.html).  
if you are accessing world from editor plugin best way is to use

GEditor-\>GetEditorWorldContext().World()
