getMaterialInstanceAt

actual fun getMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int): MaterialInstance?

Gets a material instance on a primitive.

Return

the material instance, or null for default

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

expect fun getMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int): MaterialInstance?

Gets a material instance on a primitive.

Return

the material instance, or null for default

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

actual fun getMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int): MaterialInstance?

Gets a material instance on a primitive.

Return

the material instance, or null for default

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

actual fun getMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int): MaterialInstance?

Gets a material instance on a primitive.

Return

the material instance, or null for default

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest

actual fun getMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int): MaterialInstance?

Gets a material instance on a primitive.

Return

the material instance, or null for default

Parameters

instance

Instance of the component obtained from getInstance()

primitiveIndex

the primitive of interest