How to set up the AR tilling
Last updated
Last updated
For AR Tilling we have given you a demo scene named AR Tilling. The scene can be found in the EasyAR->Scenes folder. From here we are going to add or modify existing tiles in the scene.
First you need to open the scene named AR Tilling. You can see the hierarchy shown below.
The tile changing scenario happens inside the canvas. Expand the canvas & enable selecter gameobject (by default this gameobject disabled). Now you can expand the selector also.
As an example shows we added 3 different tiles named Brick Tile, Ceramic Tile & Wood Tile. These are simply buttons. Click one button & check the inspector.
You can see, the button onclick function called shape creator game object’s change tile method. Shape creator gameobject can be found in the game hierarchy.
Click shape creator gameobject & see inspector.
You can see in Shape Creator we added 3 tile materials.If you need to modify material, simply you can change the material you need here. If you add new material, set materials count & set the materials.
If you add new materials, you should have the same count of buttons in the selector. For custom buttons, you can drag & drop the tile prefab as a child of the selector from the EasyAR->Prefabs folder.
Then select the tile prefab. Go to the inspector & click + button under the onclick method. Drag & drop shape creator game object to it & set ShapeCreator->changedTile method.
Finally you can give the exact material element number here taken by the materials element in Shape Creator.
You are Ready to build now..Go to the build setting. Change the build platform & build.