Skip to content

Commit

Permalink
pointer collider openNftDialog (#396)
Browse files Browse the repository at this point in the history
* Update display-a-certified-nft.md

Signed-off-by: Gon Pombo <gonzalo@decentraland.org>

* Update content/creator/sdk7/media/display-a-certified-nft.md

Signed-off-by: Gon Pombo <gonzalo@decentraland.org>

---------

Signed-off-by: Gon Pombo <gonzalo@decentraland.org>
  • Loading branch information
gonpombo8 committed May 9, 2024
1 parent 5f07c7f commit ca05118
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/creator/sdk7/media/display-a-certified-nft.md
Expand Up @@ -128,6 +128,10 @@ To open this UI as a result of a click action, add the following:
```ts
import { openNftDialog } from '~system/RestrictedActions'

// Add pointer collider so it can be clicked
MeshCollider.setBox(myEntity, ColliderLayer.CL_POINTER)

// Add onPointerDown callback event.
pointerEventsSystem.onPointerDown(
{
entity: myEntity,
Expand Down

0 comments on commit ca05118

Please sign in to comment.