I’m not sure of c# code to set a rect transform. Anyone can help? I have 2 positions where I want on screen keyboard. That’s it. Real simple (and yes I did do a goggle search first which is how I’m this far). thanks for help.
//Move keyboard to correct position onscreen
float posX = keyboard.GetComponent<RectTransform>().position.x;
float posY = keyboard.GetComponent<RectTransform>().position.y;
if (isKeyboardNumbers == true)
{
posX = 0.0f;
posY = 80.0f;
}
else
{
posX = -747.0f;
posY = 52.0f;
}