Function Light

A Scene plugin that provides a Phaser.GameObjects.LightsManager for the Light2D pipeline.

  • Parameters

    • props: ObjectProps<Light> & RecursivePartial<Light> & {
          color: { b: number; g: number; r: number };
          intensity: number;
          radius: number;
          x: number;
          y: number;
      }

    Returns ReactNode | Promise<ReactNode>

Properties

displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.


const MyComponent: FC = () => {
return <div>Hello!</div>
}

MyComponent.displayName = 'MyAwesomeComponent'
propTypes?: any

Ignored by React.

Only kept in types for backwards compatibility. Will be removed in a future major release.