c# - How do I remedy this type does not exist in type error? -
i need value script keep getting error says the type name 'head' not exist in type 'steamvr_camera'. my code: using unityengine; using system.collections; using unityengine.vr; public class hmdhelper : monobehaviour { private steamvr_camera.head.localposition hmdlocalpos; //error thrown here. void start() { } // update called once per frame void update() { if (input.getkeydown("g")) { autorotate(); } } void autorotate() { hmdlocalpos = inputtracking.getlocalposition(head); debug.log(hmdlocalpos); } } what have fix error? this script retrieved other value ( hmdlocalpos ) from... //========= copyright 2014, valve corporation, rights reserved. =========== // // purpose: adds steamvr render support existing camera objects // //============================================================================= using unityengine; using system.collection...