PBRMaterials

Update the Physical-Based Rendering (PBR) material properties of an entity. For an entity holding multiple materials, by default the material indexed 0 will be updated. To specify a different material in the entity, you can specify the material index like PBRMaterials[2].BaseColor.

Types

Link copied to clipboard

To update a certain material at the specified index. To specify such a indexed material of the target entity to be updated, you can use the [] operator of PBRMaterials. For example,

Properties

Link copied to clipboard

Update the base color property of the PBR material at default index 0.

Link copied to clipboard

Update the base color texture property of the PBR material at index 0.

Link copied to clipboard

Update the metallic property of the PBR material at default index 0.

Link copied to clipboard

Update the metallic property of the PBR material at index 0.

Link copied to clipboard

Update the roughness property of the PBR material at default index 0.

Link copied to clipboard

Update the roughness property of the PBR material at index 0.

Functions

Link copied to clipboard

Specify which material to be updated.