useEditing()
A React hook that returns true if the editor is open.
Useful for displaying objects for positioning, especially when an app would otherwise be invisible to everyone else.
import { useEditing } from "hyperfy";
export default function App() {
const editing = useEditing();
return <app>{editing && <text value="Editor is open!" />}</app>;
}