UNPKG

@playcanvas/react

Version:

A React renderer for PlayCanvas – build interactive 3D applications using React's declarative paradigm.

24 lines 646 B
"use client"; /** * Modify.Camera component for modifying existing camera components on matched entities * Must be a child of <Modify.Node> * * @example * ```tsx * // Remove a camera component * <Modify.Camera remove /> * * // Modify camera properties * <Modify.Camera fov={60} nearClip={0.1} farClip={1000} /> * * // Functional update * <Modify.Camera fov={(val) => val + 10} /> * ``` */ export const ModifyCamera = () => { // This component only exists to be processed by ModifyNode // It should never actually render return null; }; ModifyCamera.displayName = 'ModifyCamera'; //# sourceMappingURL=ModifyCamera.js.map