Back to Filament

getConstantBoolean

docs/android/dokka/filament-android/com.google.android.filament/-material-instance/get-constant-boolean.md

1.75.0626 B
Original Source

//filament-android/com.google.android.filament/MaterialInstance/getConstantBoolean

getConstantBoolean

[main]
open fun getConstantBoolean(name: String): Boolean

Gets the value of a specialization constant by name.

Return

The value of the constant.

Parameters

main

nameThe name of the constant as defined in the material.