setPriority

fun setPriority(instance: EntityInstance, priority: Int)

Changes the coarse-level draw ordering.

Parameters

instance

Instance of the component obtained from getInstance()

priority

the new priority clamped to 0..7