Announcement

Collapse
No announcement yet.

Plugin UPL for SCREEN_ORIENTATION_PORTRAIT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Plugin UPL for SCREEN_ORIENTATION_PORTRAIT

    hi,

    I need install plugin UPL for my android app because I need add Import ActivityInfo for orientation.

    How can I do this?

    Is other way to use portrait orientation?

    Code works but landscape, but not for portrait.

    #if PLATFORM_ANDROID || PLATFORM_IOS
    JNIEnv* JE = FAndroidApplication::GetJavaEnv();
    jmethodID SetOrientationID = FJavaWrapper::FindMethod(JE, FJavaWrapper::GameActivityClassID, "setRequestedOrientation", "(I)V", false);
    FJavaWrapper::CallVoidMethod(JE, FJavaWrapper::GameActivityThis, SetOrientationID, 0);
    // setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

    #else

    #endif
    }


    Thanks.



Working...
X