Skip to content
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

Fix docs 404 for XrAnchorCreateCallback #5880

Conversation

kungfooman
Copy link
Collaborator

Little oversight of @Maksims, currently we have a 404 in the docs:

https://developer.playcanvas.com/en/api/pc.XrAnchors.html#create

What makes it a bit worse ... the HTTP redirection goes into an endless loop:

https://developer.playcanvas.com/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/api/pc.XrAnchorCreate.html

The reason is pretty much that internally a callback is defined as a typedef, but instead of having properties, callbacks have params. So in order to differentiate between the two, the name.endsWith('Callback') logic was introduced. We could change that logic of course and check for "does the typedef has params?", but I personally like the Callback ending (since the ending makes it immediately clear what it is).

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

Copy link
Contributor

@mvaligursky mvaligursky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one. All good @Maksims before I merge this?

@Maksims
Copy link
Contributor

Maksims commented Dec 5, 2023

LGTM!

@mvaligursky mvaligursky added docs Documentation related area: xr XR related issue bug labels Dec 5, 2023
@mvaligursky
Copy link
Contributor

Thanks @kungfooman !

@mvaligursky mvaligursky merged commit a86bd8b into playcanvas:main Dec 5, 2023
7 checks passed
@kungfooman kungfooman deleted the fix-docs-404-for-XrAnchorCreateCallback branch December 5, 2023 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: xr XR related issue bug docs Documentation related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants