[에러&경고 대응] `UnityEngine.Input' does not contain a definition for `lastLocation' by pbkim

float x = Input.lastLocation.longitude;
float y = Input.lastLocation.longitude;
float z = Input.lastLocation.longitude;

-> iPhone에서의 대응

float x = iPhoneInput.lastLocation.longitude;
float y = iPhoneInput.lastLocation.longitude;
float z = iPhoneInput.lastLocation.longitude;

-> 어차피 lastLocation 부분이 사라져서 다시 바꿔야 함

float x = Input.location.lastData.longitude;
float y = Input.location.lastData.longitude;
float z = Input.location.lastData.longitude;



구글 468*60


Linked in

linknow profile