@playcanvas/react
Version:
A React renderer for PlayCanvas – build interactive 3D applications using React's declarative paradigm.
18 lines (17 loc) • 596 B
TypeScript
import { FC } from "react";
import { CameraComponent } from "playcanvas";
import { PublicProps, Serializable } from "../utils/types-utils.ts";
/**
* The Camera component makes an entity behave like a camera and gives you a view into the scene.
* Moving the container entity will move the camera.
*
* @param {CameraProps} props - The props to pass to the camera component.
*
* @example
* <Entity>
* <Camera fov={75} near={0.1} far={1000} />
* </Entity>
*/
export declare const Camera: FC<CameraProps>;
type CameraProps = Partial<Serializable<PublicProps<CameraComponent>>>;
export {};