From eb2eea654ad71d595153fec9eab3a57f214a3a12 Mon Sep 17 00:00:00 2001 From: MohammadReza Date: Thu, 12 Nov 2020 02:46:02 +0330 Subject: [PATCH] Add Entity import note --- docs/entity.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/entity.md b/docs/entity.md index bd45d4834..4fb350d5f 100644 --- a/docs/entity.md +++ b/docs/entity.md @@ -4,7 +4,8 @@ title: Entity sidebar_label: Entity --- -Entity allows you to render 3D objects, as described in the [3D Object documentation](objects.md). At the moment, React 360 supports Wavefront OBJ files and GLTF files. The external resource (or resources) containing the model's information are provided using a `source` attribute, which is an object of key-value pairs mapping resource types to their locations. +Entity allows you to render 3D objects, as described in the [3D Object documentation](objects.md). At the moment, React 360 supports Wavefront OBJ files and GLTF files. The external resource (or resources) containing the model's information are provided using a `source` attribute, which is an object of key-value pairs mapping resource types to their locations. Don't forget to import Entity from 'Entity' instead of from 'react-360' + The following properties are currently supported: - `obj` - Location of an OBJ-formatted model @@ -12,6 +13,9 @@ The following properties are currently supported: - `gltf2` - Location of a standalone GLTF2 model ```js +import Entity from 'Entity'; + + // Entity with a material