Class ModelRenderable
- java.lang.Object
-
- com.google.ar.sceneform.rendering.Renderable
-
- com.google.ar.sceneform.rendering.ModelRenderable
-
@RequiresApi(api=24) public class ModelRenderable extends Renderable
Renders a 3D Model by attaching it to aNode
withNode.setRenderable(Renderable)
.future = ModelRenderable.builder().setSource(context, R.raw.renderable).build(); renderable = future.thenAccept(...);
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelRenderable.Builder
Factory class forModelRenderable
.
-
Field Summary
-
Fields inherited from class com.google.ar.sceneform.rendering.Renderable
DEFAULT_ANIMATION_FRAME_RATE, RENDER_PRIORITY_DEFAULT, RENDER_PRIORITY_FIRST, RENDER_PRIORITY_LAST
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModelRenderable.Builder
builder()
Constructs aModelRenderable
.ModelRenderable
makeCopy()
Creates a new instance of this ModelRenderable.-
Methods inherited from class com.google.ar.sceneform.rendering.Renderable
createInstance, getAnimationFrameRate, getCollisionShape, getFinalModelMatrix, getId, getMaterial, getMaterial, getRenderPriority, getSubmeshCount, getSubmeshName, isShadowCaster, isShadowReceiver, setCollisionShape, setMaterial, setMaterial, setRenderPriority, setShadowCaster, setShadowReceiver, updateFromDefinition
-
-
-
-
Method Detail
-
makeCopy
public ModelRenderable makeCopy()
Creates a new instance of this ModelRenderable.The new renderable will have unique copy of all mutable state. All materials referenced by the ModelRenderable will also be instanced. Immutable data will be shared between the instances.
- Specified by:
makeCopy
in classRenderable
-
builder
public static ModelRenderable.Builder builder()
Constructs aModelRenderable
.
-
-