toggle menu
SceneView
androidJvm
switch theme
search in API
sceneview
/
com.google.ar.sceneform.rendering
/
Material
/
Builder
Builder
class
Builder
Builder for constructing a
Material
Members
Functions
build
Link copied to clipboard
open
fun
build
(
engine
:
Engine
)
:
CompletableFuture
<
Material
>
Creates a new
Material
based on the parameters set previously.
set
Registry
Id
Link copied to clipboard
open
fun
setRegistryId
(
registryId
:
Any
)
:
Material.Builder
Allows a
Material
to be reused.
set
Source
Link copied to clipboard
open
fun
setSource
(
materialBuffer
:
ByteBuffer
)
:
Material.Builder
Allows a
Material
to be created with data.
open
fun
setSource
(
inputStreamCreator
:
Callable
<
InputStream
>
)
:
Material.Builder
Allows a
Material
to be constructed via callable function.
open
fun
setSource
(
context
:
Context
,
sourceUri
:
Uri
)
:
Material.Builder
Allows a
Material
to be constructed from
Uri
.
open
fun
setSource
(
context
:
Context
,
resource
:
Int
)
:
Material.Builder
Allows a
Material
to be constructed from resource.