GroundShadowComponent

@MainThread
class GroundShadowComponent : Component

A Component that adds a ground shadow to the entity.

A ground shadow creates the illusion of a directional light above an entity. Attach this component to the entity that casts the shadow and the entity that should receive the shadow.

Notes:

  • You need to add this component to each entity that requires a ground shadow; it does not propagate to children.

  • Entities without this component will neither cast nor receive ground shadows.

Constructors

Link copied to clipboard
constructor(castsShadowEnabled: Boolean, receivesShadowEnabled: Boolean)

Constructs a GroundShadowComponent.

Properties

Link copied to clipboard
var castsShadowEnabled: Boolean

Whether the entity casts ground shadow.

Link copied to clipboard

Whether the entity receives ground shadow.

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
open override fun toString(): String