Announcement

Collapse
No announcement yet.

Android. Native view in UE4.

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

  • replied
    Ok, thanks for your help!

    Leave a comment:


  • replied
    You cannot send a C++ Actor to use in Java.

    Leave a comment:


  • replied
    Thanks for your answer!
    >You can talk to Java with JNI.
    I know it. But it's basically about calling java functions from C++ and sending primitives. I want to send an Actor instance to java code (in case if Actor class extends android's View class) or to create new java class which exnends Actor and can be used as Actor (if it's possible of course).

    Leave a comment:


  • replied
    Take a look at GameActivity.java in Engine/Build/Android/Java/src/com/epicgames/ue4. You can add new code to this with Unreal Plugin Language (UPL). There are some examples like GearVR_APL.xml and documentation at the top of UnrealPluginLanguage.cs. You can talk to Java with JNI.

    Leave a comment:


  • started a topic Android. Native view in UE4.

    Android. Native view in UE4.

    Native ad of many networks requires to use something like registerForInteraction method with a View object as a parameter (without this method user will not be able to click on ad). Of course, implementation of this method is hidden, so it's not possible to rewrite the functionality in c++.
    I want to create wrapper for unreal engine to show native ads. Is it possible to convert Actor of UE4 to View of Android? Or maybe to send View, which is created in java as a container for Actors (like text fields)?
Working...
X