Back to Filament

setConstant

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

1.75.01.1 KB
Original Source

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

setConstant

[main]
open fun setConstant(name: String, value: Boolean)

open fun setConstant(name: String, value: Float)

open fun setConstant(name: String, value: Int)

Overrides a specialization constant of this material instance.

Parameters

main

nameThe name of the constant as defined in the material.
valueThe value of the constant.

See also

com.google.android.filament.Material.Builder