Skip to content

Commit

Permalink
Hide different meshes inside a model
Browse files Browse the repository at this point in the history
This functionality was never implemented in SDK7

It will be irrelevant after we can attach pointerEvents to specific Node entities inside a GLTF

Signed-off-by: Nicolas Earnshaw <[email protected]>
  • Loading branch information
nearnshaw authored Nov 11, 2024
1 parent 57b71cf commit aaf9672
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ pointerEventsSystem.onPointerDown(

This approach is not ideal, as the hover hint shows a single string and won't specify what action to activate. Note that this will make the callback function run for every input action including movement keys, so you must filter out only the actions you care about.

<!--
### Different meshes inside a model
Often, _.glTF_ 3D models are made up of multiple meshes, that each have an individual internal name. All button events events include the information of what specific mesh was clicked, so you can use this information to trigger different click behaviors in each case.
Expand Down Expand Up @@ -205,3 +207,4 @@ pointerEventsSystem.onPointerDown(
}
)
```
-->

0 comments on commit aaf9672

Please sign in to comment.