Skip to content

Commit

Permalink
warning about user data
Browse files Browse the repository at this point in the history
  • Loading branch information
nearnshaw committed Oct 10, 2024
1 parent 43acea0 commit e2547f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/creator/sdk7/interactivity/user-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ The `avatar` object has the following nested information:
- `hairColor`: Player hair color as a `Color4`
- `name`: The player's name.

{{< hint warning >}}
**📔 Note**: The player data may not be available on the first frame of the scene, depending on load times. You should verify that the data was returned and otherwise attempt again a few milliseconds later.
{{< /hint >}}

```ts
import { getPlayer } from '@dcl/sdk/src/players'

Expand Down

0 comments on commit e2547f2

Please sign in to comment.