API reference
API reference
Select your platform
No SDKs available
No versions available

MaterialSidedness

MaterialSidedness

enum MaterialSidedness : Enum<MaterialSidedness>
Controls which sides of a mesh are rendered with a material.
Example usage:
// Create a material that only renders the front side of polygons (default)
sceneMaterial.setSidedness(MaterialSidedness.FRONT_SIDED)

Entries

NameSummary
FRONT_SIDED

Renders only the front side of polygons. Default option.
BACK_SIDED

Renders only the back side of polygons.
DOUBLE_SIDED

Renders both sides of polygons.

Properties

NameSummary
encoding
val encoding: Int

Integer value corresponding to the native graphics API encoding for this sidedness mode
name
val name: String
ordinal
val ordinal: Int

Functions

NameSummary
valueOf
fun valueOf(value: String): MaterialSidedness

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values
fun values(): Array<MaterialSidedness>

Returns an array containing the constants of this enum type, in the order they’re declared.
Did you find this page helpful?