hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
58 lines (28 loc) • 892 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [EntityModelAnimation](./server.entitymodelanimation.md) > [setFadesOut](./server.entitymodelanimation.setfadesout.md)
## EntityModelAnimation.setFadesOut() method
Sets whether the animation fades out when paused or stopped.
**Signature:**
```typescript
setFadesOut(fadesOut: boolean): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
fadesOut
</td><td>
boolean
</td><td>
Whether the animation should fade out when paused or stopped.
\*\*Side effects:\*\* Emits `EntityModelAnimationEvent.SET_FADES_OUT` when spawned.
\*\*Category:\*\* Entities
</td></tr>
</tbody></table>
**Returns:**
void