Back to Filament

getConstantFloat

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

1.75.0612 B
Original Source

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

getConstantFloat

[main]
open fun getConstantFloat(name: String): Float

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.