Skip to content

docs: correct useApp camera lookup#894

Merged
abstrakt8 merged 1 commit intomainfrom
fix-useapp-camera-docs
Feb 5, 2026
Merged

docs: correct useApp camera lookup#894
abstrakt8 merged 1 commit intomainfrom
fix-useapp-camera-docs

Conversation

@abstrakt8
Copy link
Contributor

@abstrakt8 abstrakt8 commented Feb 5, 2026

Summary

@abstrakt8 abstrakt8 changed the title Docs: correct useApp camera lookup docs: correct useApp camera lookup Feb 5, 2026
@abstrakt8 abstrakt8 self-assigned this Feb 5, 2026
@abstrakt8 abstrakt8 marked this pull request as ready for review February 5, 2026 14:27
@abstrakt8 abstrakt8 requested review from a team and Copilot February 5, 2026 14:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects the documentation for the useApp hook by replacing an incorrect camera lookup pattern with the proper method for accessing camera components in PlayCanvas.

Changes:

  • Fixed incorrect app.scene.camera reference to use the correct app.root.findComponents('camera') pattern
  • Added explanatory comment clarifying that cameras are components on entities
  • Updated description to include additional accessible properties (root entity, systems, assets, events)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@abstrakt8 abstrakt8 merged commit c04ec71 into main Feb 5, 2026
9 checks passed
@abstrakt8 abstrakt8 deleted the fix-useapp-camera-docs branch February 5, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants