71
edits
Junyuan WU (talk | contribs) No edit summary |
Junyuan WU (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
[[File:unity start]] | [[File:unity start]] | ||
'''2. create a simple Unity scene.''' | '''2. create a simple Unity scene.''' | ||
Line 12: | Line 13: | ||
[[File:new object in scene]] | [[File:new object in scene]] | ||
'''3. add component to camera''' | '''3. add component to camera''' | ||
[[File:select camera]] | [[File:select camera]] | ||
Line 35: | Line 36: | ||
double click the script in Assets,then you will get a script widow, you can write code in it. | double click the script in Assets,then you will get a script widow, you can write code in it. | ||
'''4.write the code.''' | '''4.write the code.''' | ||
this code is for camera, then create a gameobject, this gameobject is the cube, the capture system will send the position of the root bone to the cube, then the script will make the camera follow the cube. | this code is for camera, then create a gameobject, this gameobject is the cube, the capture system will send the position of the root bone to the cube, then the script will make the camera follow the cube. | ||
[[File:code]] | [[File:code]] | ||
'''5.set the data related to the capture system.''' | '''5.set the data related to the capture system.''' |
edits