@icraft/player-react v1.0.21
Introduction
@icraft/player-react
@icraft/player-react is a React frontend component that allows you to easily integrate scenes edited in iCraft Editor into your project, and provides rich interaction events and methods.
Quick Start
Installation
Install the @icraft/player-react package using npm or pnpm:
# Using npm
npm install @icraft/player-react --save
# Or using pnpm
pnpm install @icraft/player-react --saveNote: Some package managers may not automatically install the @icraft/engine package. If it's missing, please install it manually:
pnpm install @icraft/engine --saveBasic Usage
Import and use the ICraftPlayer component in your project:
import { ICraftPlayer } from "@icraft/player-react";
export default function MyScene() {
return <ICraftPlayer src='your-scene.iplayer' />;
}Where src is the path to the .iplayer file exported from iCraft Editor.
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago