Last active
October 27, 2021 09:20
-
-
Save ThomasGorisse/92c5c9bf21c6a3d3679fd4bf9528f561 to your computer and use it in GitHub Desktop.
Sceneform Maintained - Edit your Activity or Fragment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
// Load model.glb from assets folder or http url | |
(supportFragmentManager.findFragmentById(R.id.arFragment) as ArFragment) | |
.setOnTapPlaneGlbModel("model.glb") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
super.onViewCreated(view, savedInstanceState) | |
// Load model.glb from assets folder or http url | |
(childFragmentManager.findFragmentById(R.id.arFragment) as ArFragment) | |
.setOnTapPlaneGlbModel("https://storage.googleapis.com/ar-answers-in-search-models/static/Tiger/model.glb") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment