sceneView.getSession() returns null
up vote
0
down vote
favorite
I have sceneform sample hellosceneform app with its arFragment and want to add object on custom coordinates. For this, as I understood, I need to have a session to add an Anchor on it then create a Node etc. But when I run arFragment.getArSceneView().getSession()
to call createAnchor()
on it, I get null
. How to get not null session?
P.S. arFragment is standard hellosceneform's ux fragment:arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.ux_fragment)
android augmented-reality arcore sceneform
add a comment |
up vote
0
down vote
favorite
I have sceneform sample hellosceneform app with its arFragment and want to add object on custom coordinates. For this, as I understood, I need to have a session to add an Anchor on it then create a Node etc. But when I run arFragment.getArSceneView().getSession()
to call createAnchor()
on it, I get null
. How to get not null session?
P.S. arFragment is standard hellosceneform's ux fragment:arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.ux_fragment)
android augmented-reality arcore sceneform
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have sceneform sample hellosceneform app with its arFragment and want to add object on custom coordinates. For this, as I understood, I need to have a session to add an Anchor on it then create a Node etc. But when I run arFragment.getArSceneView().getSession()
to call createAnchor()
on it, I get null
. How to get not null session?
P.S. arFragment is standard hellosceneform's ux fragment:arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.ux_fragment)
android augmented-reality arcore sceneform
I have sceneform sample hellosceneform app with its arFragment and want to add object on custom coordinates. For this, as I understood, I need to have a session to add an Anchor on it then create a Node etc. But when I run arFragment.getArSceneView().getSession()
to call createAnchor()
on it, I get null
. How to get not null session?
P.S. arFragment is standard hellosceneform's ux fragment:arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.ux_fragment)
android augmented-reality arcore sceneform
android augmented-reality arcore sceneform
asked yesterday
Serob_b
193112
193112
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53237360%2fsceneview-getsession-returns-null%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password