DrawOrderGroupComponent

The Component that defines a draw order group for ModelComponent and ParticleComponent.

When this component is attached to an entity, it enables the associated model and particle components to be sorted within a specific group and sequence, allowing for precise control over the rendering hierarchy.

This component is particularly effective for managing visual layering and preventing depth-sorting artifacts.

Constructors

Link copied to clipboard
constructor(group: DrawOrderGroup, order: Int)

Properties

Link copied to clipboard

Controls the draw order group of the entity.

Link copied to clipboard
var order: Int

Controls the draw order of the entity in the draw order group.

Functions

Link copied to clipboard
open override fun clone(): Component

Creates and returns a copy of this Component instance.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun setOrder(drawOrderGroup: DrawOrderGroup, order: Int)

Sets the drawing group and sorting priority for the entity's visual components.

Link copied to clipboard
open override fun toString(): String