build

Build and attach the light component to an entity. If the entity already has a light, it is destroyed first. Supports up to 2048 lights per Engine.

Return

Result.Success if the light was created

Parameters

engine

Engine to associate this light with

entity

Entity to attach the light component to