I can't access getPlaneDiscoveryController #154
Answered
by
ThomasGorisse
MihajloAndrejicNis
asked this question in
Q&A
-
I tried to change image of hand when plane is detecting accessing getPlaneDiscoveryController. |
Beta Was this translation helpful? Give feedback.
Answered by
ThomasGorisse
Aug 31, 2021
Replies: 2 comments
-
arFragment.setInstructionsController(new InstructionsController(inflater, frameLayout) {
@Override
protected View onCreateView(int type) {
switch (type) {
case TYPE_PLANE_DISCOVERY:
// return your view here
default:
return super.onCreateView(type);
}
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ThomasGorisse
-
Thank you very much, the first solution is what I needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PlaneDiscoveryController
has been replaced byInstructionsController
which can also handle the AugmentedImage detection instructions.sceneform_hand_phone.png
in your drawable folder.InstructionsController.onCreateView(int type)
and apply it to your fragment: