-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Feature] HTML Debug Layer #4526
Comments
I don't see the problem in using AccessibilityManager in creative ways. If it supplies what you need, then great! |
Thanks for your reply, |
Lemme know the exact wording for what you think we should add to the wiki and I'll add it. It'd be nice to come from you because you came here looking for an answer... so if the wording in the gotchas would have appealed to you and got you thinking, then that's what we want for other devs also coming to pixi thinking the same thing :) The reason I'm ok with using AccessibilityManager as you are is because, in general, the less code to maintain, the better; so if you can have 1 thing that does what you want but it's named slightly wrong, i'd rather that then 2 things with twice the code that pretty much do the same thing |
I understand the AccessibiltyManager part, and I do agree and happy with that. Of course i can write this trick with accessibilitymanager on some forum/blog/post but the point is to help others not to get credit |
Added! Thanks again :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello,
I am working on a project where I ended up needing some kind of a debug layer to display some information on top of my DisplayObjects. console.log and break points do help in this case, but it is time consuming and as well have to keep trace on everything (filtering the logs, and using conditional breakpoints). Hence it made a lot of sense to create HTML div on top of my DisplayObjects with the information displayed inside. Of course it can be done using PIXI.Text but that would require to create a new Text object and make sure it has highest z order.
The simplest and straightforward solution was to use Accessibility as follows (steps 2 & 3 just in case someone wanted to try quickly) :
Achieved result is shown below:
This is a badass trick and it really helped me where needed. However, from an ethical and legal perspective, accessibility doesnt seem fair to be used as a debugging tool. Hence, I would say it might make sense to have a HTML debug layer for that purpose. + developers can always change CSS as per need.
The text was updated successfully, but these errors were encountered: