Pointerlock in editor

This is both my editor setup, and game perspective, I want to be able to pan the camera into the dark, and I want the mouse to lock and disappear. I am not setting anything up yet. I can’t create objects with the scripts, and I am not sure how to import addons(Pointerlock), if anyone has any Idea to do this, please let me know.

It is indeed not possible to import arbitrary addons in scripts so you can’t instantiate PointerLockControls in your script code.

You essentially have to fork the editor and change its implementation to support a different control class than the built-in EditorControls. However, there is not guide that shows how to do that so you have to give it a shot by yourself.