-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[doc] a-text.md, raycasting #2871
Conversation
We have a cursor example (https://github.com/aframevr/aframe/blob/master/examples/test/cursor/index.html). Do we add some text there to illustrate how to do it? |
I think the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rephrase like, to interact with the text via raycaster or cursor, we will need to add a geometry like a plane to the text
Yeah, IMO the core text component should be thought of more as a specific type of material / decoration and so to be interacted with, the entity needs a geometry (e.g. plane or box) that defines its area / volume for interaction...? |
A simplistic example on the page may suffice ? <a-text value="Hello, World!"></a-text>
<!-- for cursor detection add geometry -->
<a-text value="click me!" geometry="primitive:plane"></a-text> |
The wording is friendlier now although I think it is preferable to say explicitly that text itself does not work with cursor or raycaster to avoid any confusion. |
docs/primitives/a-text.md
Outdated
@@ -14,6 +14,10 @@ Wraps the [text component][text]. | |||
|
|||
```html | |||
<a-text value="Hello, World!"></a-text> | |||
|
|||
<!-- for interactivity add geometry --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add this example below to the limitations, and then:
<a-text value="Now interactable" geometry="primitive: plane"</a-text>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Not sure if interactable is a proper word but it is better than interactive.
Description:
address raycasting
Changes proposed: