It covers my NGUI Input Box. Any suggestions please? I am a noob.
The registration form is likely the game object that contains each field and you should be able to move it like so:
registrationFormObject.transform.position = new Vector2(desiredXValue, desiredYValue);
If you wanted to do it smoothly so it doesnโt just pop up there from one frame to another you could add a lerp function for example:
float timeCount = 0.0f;
float offset = 50.0f; //Amount to move the form up
Vector2 startPos;
Vector2 endPos;
void Start(){
startPos = registrationFormObject.transform.position;
endPos = new Vector2(registrationFormObject.transform.position.x, registrationFormObject.transform.position.y + offset);
}
voidUpdate(){
if( TouchScreenKeyboard.visible ){
registrationFormObject.transform.position = Vector2.Lerp(startPos, endPos, timeCount);
timeCount = timeCount + Time.deltaTime;
}
}