Easy AR
  • Easy AR 3.0 Documentation
  • Demos
    • Single Object Placement
    • Multiple object placement
    • AR Measurement
    • AR Tilling
    • AR Image Target
    • AR Face Tracking
    • AR Portal
  • Fundamentals
    • Import Easy AR package into Unity
    • Upgrade Unity Packages of Easy AR Unity Project
    • Build the application
  • Guides
    • How to create a new object prefab
    • Setting up a custom scene
    • How to set up the AR tilling
    • How to create a custom AR Face
      • How to create an AR Face with Face Paint
      • How to create an AR Face with Face Mesh
    • How to create a Custom Image Target Demo
    • Shadow map generation
Powered by GitBook
On this page
  1. Guides

How to set up the AR tilling

PreviousSetting up a custom sceneNextHow to create a custom AR Face

Last updated 1 year ago

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.