導(dǎo)入sdk
下載sdk和開(kāi)發(fā)文檔蹭秋,在項(xiàng)目中導(dǎo)入PicoNeo的sdk
頭控交互
進(jìn)入Project選項(xiàng)卡,依次展開(kāi)Assets>PicoMobileSDK>Pvr_UnitySDK>Prefabs跷跪,將Pvr_UnitySDK預(yù)制體拖放入場(chǎng)景锻狗,將其Transform組件的Positon和Rotation均設(shè)置為(0祟同,0楷掉,0)
將場(chǎng)景中的MainCamera放到Pvr_UnitySDK>Head下
手柄交互
進(jìn)入Project選項(xiàng)卡厢蒜,依次展開(kāi)Assets>PicoMobileSDK>Pvr_Controller>Prefabs,將ControllerManager預(yù)制體拖放入場(chǎng)景烹植;將Goblin_Controller預(yù)制體拖放入場(chǎng)景Pvr_UnitySDK下
將場(chǎng)景中的MainCamera放到Pvr_UnitySDK>Goblin_Controller下
手柄和頭控交互切換
判斷是否連接手柄斑鸦,設(shè)置相應(yīng)GameObject顯示隱藏屬性