setMaterialInstanceAt

actual fun setMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int, materialInstance: MaterialInstance)

Changes a material instance on a primitive.

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

materialInstance

the material instance to bind

expect fun setMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int, materialInstance: MaterialInstance)

Changes a material instance on a primitive.

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

materialInstance

the material instance to bind

actual fun setMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int, materialInstance: MaterialInstance)

Changes a material instance on a primitive.

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

materialInstance

the material instance to bind

actual fun setMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int, materialInstance: MaterialInstance)

Changes a material instance on a primitive.

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

materialInstance

the material instance to bind

actual fun setMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int, materialInstance: MaterialInstance)

Changes a material instance on a primitive.

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

materialInstance

the material instance to bind