instanceOf

fun instanceOf(entity: Entity): Boolean

Checks whether this entity is an instance of another entity (the other is the prefab this entity was made from).