Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetWorldFromContextObject deprecated #124

Closed
danatsh opened this issue Oct 13, 2017 · 2 comments
Closed

GetWorldFromContextObject deprecated #124

danatsh opened this issue Oct 13, 2017 · 2 comments
Labels
enhancement New feature or request todo Internal development tasks

Comments

@danatsh
Copy link

danatsh commented Oct 13, 2017

Hi,

When I building android package I see warning message

UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: In file included from D:/Epic Games/Unreal Projects/Proj/Plugins/VaRestPlugin/Intermediate/Build/Android/UE4/Development/VaRestPlugin/Module.VaRestPlugin.cpp:6:
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: D:\Epic Games\Unreal Projects\Proj\Plugins\VaRestPlugin\Source\VaRestPlugin\Private\VaRestRequestJSON.cpp(228,31) :  warning: 'GetWorldFromContextObject' is deprecated: GetWorldFromContextObject(Object) and GetWorldFromContextObject(Object, boolean) are replaced by GetWorldFromContextObject(Object, Enu
m) or GetWorldFromContextObjectChecked(Object) Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations]
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:         if (UWorld* World = GEngine->GetWorldFromContextObject(WorldContextObject))
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:                                      ^
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool: Runtime/Engine/Classes\Engine/Engine.h(2211,10) :  note: 'GetWorldFromContextObject' has been explicitly marked deprecated here
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:         UWorld* GetWorldFromContextObject(const UObject* Object, bool bChecked = true) const
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool:      

Is there any way to change deprecated function?

@JulianuszBarat
Copy link

JulianuszBarat commented Oct 27, 2017

I have the same problem with Windows Build.(4.18 Engine version)

@PlainBane
Copy link

PlainBane commented Oct 27, 2017

Here are the changes you have to make to fix that warning. Have not tested in full build or on any device. So be careful. Should work though. Repository code
Or you can use my forked version of plugin until author releases an official fix. Repository

@ufna ufna added enhancement New feature or request todo Internal development tasks labels Nov 1, 2017
@ufna ufna closed this as completed Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request todo Internal development tasks
Projects
None yet
Development

No branches or pull requests

4 participants