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

Have problems with UnityPlayerActivity #202

Open
zyq950309 opened this issue Jul 24, 2018 · 0 comments
Open

Have problems with UnityPlayerActivity #202

zyq950309 opened this issue Jul 24, 2018 · 0 comments

Comments

@zyq950309
Copy link

I was trying to achieve showing the bottomsheet on the view of UnityPlayerActivity, which is the default activity exported from unity, but I found the bottomsheet couldn't be seeing unless I rotated the phone.It means the bottomsheet was Instantiated but be covered by the view of unity.I wonder if there is anything I can do with bottomsheet or the preset of bottomsheet conflicts with unity-exported activity.
Here are my codes:
mUnityPlayer = new UnityPlayer(this);
setContentView(R.layout.unity_layout);
linearLayout = (LinearLayout)findViewById(R.id.unity_player);
linearLayout.addView(mUnityPlayer.getView());
mUnityPlayer.requestFocus();

in my click function I use it like this
ExploreFragment exploreFragment = new ExploreFragment();
//explorefragment is a child class of BottomSheetFragment
exploreFragment.show(getSupportFragmentManager(),R.id.unity_bottomsheet);

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

No branches or pull requests

1 participant