setRegistryId

open fun setRegistryId(registryId: Any): Material.Builder

Allows a Material to be reused. If registryId is non-null it will be saved in a registry and the registry will be checked for this id before construction.

Return

Builder for chaining setup calls

Parameters

registryId

allows the function to be skipped and a previous material to be re-used