UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

58 lines (28 loc) 916 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [Entity](./server.entity.md) &gt; [setEmissiveIntensity](./server.entity.setemissiveintensity.md) ## Entity.setEmissiveIntensity() method Sets the emissive intensity of the entity. **Signature:** ```typescript setEmissiveIntensity(emissiveIntensity: number | undefined): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> emissiveIntensity </td><td> number \| undefined </td><td> The emissive intensity of the entity. Use a value over 1 for brighter emissive effects. \*\*Side effects:\*\* Emits `EntityEvent.SET_EMISSIVE_INTENSITY` when spawned. \*\*Category:\*\* Entities </td></tr> </tbody></table> **Returns:** void