Godraycomponent

GodrayComponent class

A component to display godrays effect in the game.

See GodrayComponentData for the data schema used to create a godray component

Signature:

export declare class GodrayComponent extends Component3D<GodrayComponentData> 

Extends: Component3D<GodrayComponentData>

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the GodrayComponent class.

Properties

Property

Modifiers

Type

Description

color

number

Color of the compoent. Defaults to 0xffffff

opacity

number

Opacity of the component, from 0 to 1. Defaults to 1

Methods

Method

Modifiers

Description

dispose()

protected

init()

protected