# Access Game Instance from Object class?

**URL:** <https://forums.unrealengine.com/t/access-game-instance-from-object-class/1268123>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [August 21, 2023, 7:36pm UTC](https://forums.unrealengine.com/t/access-game-instance-from-object-class/1268123 "2023-08-21T19:36:15Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![UnrealEverything](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealEverything](https://forums.unrealengine.com/u/UnrealEverything)\
**Post date:** [August 25, 2023, 5:40am UTC](https://forums.unrealengine.com/t/access-game-instance-from-object-class/1268123/5 "2023-08-25T05:40:20Z")

</div>

Some nodes (such as `GetGameInstance`) need a valid `WorldContext` in order to do their task. And so if you try to call this from an object that does not provide this `WorldContext` (needs to override `GetWorld` in C++) blueprints prevent you from calling these functions.

The two solutions from here [Is there a way to use Blueprint Function Libraries or an equivelent feature for non-actor blueprints? - #4 by UnrealEverything](https://forums.unrealengine.com/t/is-there-a-way-to-use-blueprint-function-libraries-or-an-equivelent-feature-for-non-actor-blueprints/878180/4) should work for you as well, unfortunately they both require some C++ code.

---

_[View the full topic](https://forums.unrealengine.com/t/access-game-instance-from-object-class/1268123)._
