question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Editor: access to the editor instance from the browser inspector

See original GitHub issue
Description of the problem

It used to be possible to access the editor instance from the chrome inspector by simply typing editor. This no longer works, I used to use this all the time to edit certain things that couldn’t be changed using UI. editor.selected for example.

Would simply adding window["editor"] = editor in the index.html suffice here?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mrdoobcommented, Jan 8, 2020

Actually, I do think we should do a window.editor = editor (and probably window.THREE = THREE). It’s good to be able to run scripts from the console some times.

1reaction
jespertheendcommented, Jan 9, 2020

How’s this? #18349

Read more comments on GitHub >

github_iconTop Results From Across the Web

IAM basic and predefined roles reference - Google Cloud
This page lists all basic and predefined roles for Identity and Access Management (IAM). To learn more about IAM roles, see Roles and...
Read more >
How to access one class instance in editor script?
I am trying to create instances of my own event class in inspector via reflection. using UnityEngine; using System.Collections; using System.
Read more >
How to Inspect Element: Simple Methods for Editing a Web Page
Open Google Chrome and access a website. In this example, we're using hostinger.com. Right-click anywhere on the website and choose Inspect. Use ...
Read more >
How to Edit CSS Using Google Chrome Developer Tools
In this guide, you will learn how to use Google Chrome's Developer Tools to inspect an element, modify CSS, and preview CSS changes...
Read more >
How to Use Inspect Element in Chrome, Safari, and Firefox
Right-click any part of the page and choose Inspect Element. Right-clicking a specific page element will open that element in the inspector view ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found