UNPKG

mylingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

10 lines (7 loc) 293 B
import store from "@lincode/reactivity" import { Object3D } from "three" import { getSelectionTarget } from "./useSelectionTarget" export const [setSceneGraphTarget, getSceneGraphTarget] = store< Object3D | undefined >(undefined) getSelectionTarget(() => setSceneGraphTarget(undefined))