# Objects with "world context"

{% hint style="success" %}
verified: 2025-11-19 version: v39
{% endhint %}

If you create a class off of a base UObject, it isn't guaranteed to have a "world context". For this reason, Unreal will hide away any methods that require a "world context object". This includes a lot of common, useful helpers, like `GetAllActorsOfClass`.

<figure><img src="https://1456550285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoWTlPaoHd1McSakqMigu%2Fuploads%2Fgit-blob-ca9a91a46ad089ee6c5874691226282d2f056ff4%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

To help with this, we have added a `M2_ObjectWithWorldContext` helper - classes extending this will display the methods that require a world context object. If you create these objects with a suitable outer, that has the world context, then these methods will work.

<figure><img src="https://1456550285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoWTlPaoHd1McSakqMigu%2Fuploads%2Fgit-blob-d143363adf79916a67cf6591ec1c946b3096e101%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
