1 直接打开插件里设置好的场景就好了!
2 增强现实
-A 导入ARtookit 和HTC 的package
B,修改代码
B1, ARControllerEditor
//wangpeng edit 20170512
arcontroller.eyeCam = EditorGUILayout.ObjectField(arcontroller.eyeCam, typeof(GameObject), true) as GameObject;
//end
B2, ARController.cs
//wangpeng edit 20170513
public GameObject eyeCam;
//end
![](https://i-blog.csdnimg.cn/blog_migrate/1a1e39cf68c13b6e9ecbb3fa376af839.png)
vbmgo.transform.parent = eyeCam.transform;
vbmgo.transform.position = new Vector3(0.0f, 0.0f, 1.5f);
vbmgo.transform.rotation = new Quaternion(0.0f, 0.0f, 0.0f, 1.0f);
vbmgo.transform.localScale = new Vector3(2.5f, 2.5f, 2.5f);
//end
B3, ARCamera.cs
private Rect initRect = new Rect(0,0,1,1);
![](https://i-blog.csdnimg.cn/blog_migrate/a04423b2791a66273572d6cf7675193f.png)
c. clearFlags = CameraClearFlags.Skybox;
this.GetComponent<Camera>().rect = initRect;
//end
C, new material and Render Texture
4, 设置Material属性
E quad.
这个东西有正反面之分,如果是反面就看不到了。