Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

How to get GetWorld() in C#? #117

Open
mi1agency opened this issue Apr 9, 2020 · 1 comment
Open

How to get GetWorld() in C#? #117

mi1agency opened this issue Apr 9, 2020 · 1 comment

Comments

@mi1agency
Copy link

In C++ it's easy to #include "Engine/World.h" and get access to GetWorld() global to get the root game world, I can't find a way to do that in this project from C#.

@Tanner555
Copy link
Contributor

There's a property in one of the namespaces (I believe UnrealEngine.Runtime) called World. The World Property is equivalent to the C++ GetWorld() method. It's automatically accessible from all Actors and Actor Components. Although you might have to GetWorld another way if you aren't overriding an actor or actor component.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants