ModelRenderable
Renders a 3D Model by attaching it to a com.google.ar.sceneform.Node with setRenderable.
future = ModelRenderable.builder().setSource(context, R.raw.renderable).build();
renderable = future.thenAccept(...);
Content copied to clipboard
Types
Link copied to clipboard
Factory class for ModelRenderable.
Properties
Functions
Link copied to clipboard
Constructs a ModelRenderable.
Link copied to clipboard
open fun createInstance(engine: Engine, assetLoader: AssetLoader, resourceLoader: ResourceLoader, transformProvider: TransformProvider): RenderableInstance
Link copied to clipboard
Get the CollisionShape used for collision detection with this Renderable.
Link copied to clipboard
Gets the final model matrix to use for rendering this Renderable based on the matrix passed in.
Link copied to clipboard
Returns the material bound to the first submesh.
Returns the material bound to the specified submesh.
Link copied to clipboard
Returns the number of submeshes that this renderable has.
Link copied to clipboard
Returns the name associated with the specified submesh.
Link copied to clipboard
Creates a new instance of this ModelRenderable.
Link copied to clipboard
Optionally override in subclasses for work that must be done each frame for specific types of Renderables.
Link copied to clipboard
Set the CollisionShape used for collision detection with this Renderable.
Link copied to clipboard
Sets the material bound to the first submesh.
Sets the material bound to the specified submesh.
Link copied to clipboard