Back to Filament

getConstantInt

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

1.75.0598 B
Original Source

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

getConstantInt

[main]
open fun getConstantInt(name: String): Int

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.