- Home /
get editor camera without focus on the scene
Hello,
I have a Project with an editor script. Basically a Button ("Create"). When said button is pressed the current position of the camera is taken to render a cubemap.
The Problem is that the button is in the inspector, so the focus of the Scene is lost. Therefore I cannot use Camera.current.
Is there another way to get the camera position even if the scene is not in focus?
Your answer
Follow this Question
Related Questions
How to have two inspectors of different types thats objects they are inspecting change 0 Answers
Problem with second enum selection inspector 0 Answers
Any way to export generated bump map from the Editor? 1 Answer
FPS increase when selecting an Camera due to VSync 0 Answers
Replicate "Apply" and "Revert" button functionality in ScriptableObject Editor Inspector 2 Answers