- Home /
Scale prefab with scren Size
I have a problem with proper prefab display. In the editor everything is fine, but in the device does not work best. Code making buttons: I have a problem with proper prefab display. In the editor everything is fine, but in the device does not work best.
Code making buttons:
Void CreateLevel ()
{
For (int i = 1; i <maps.Length + 1; i ++) {
LevelButton.name = "LevelButton" + i;
LevelButton.GetComponent <ButtonLevel> (). Level = i;
Instantiate (LevelButton) .transform.SetParent (ParentLevelButton.transform);
}
}
![][1] Picture settings and game appearance in the editor and mobile device. [1]: /storage/temp/93580-error.png
Comment
Your answer

Follow this Question
Related Questions
How to make Image same size as UI Button 1 Answer
UI Scaling with Button Text 1 Answer
How to fine-control UI elements scale 0 Answers
Button onClick based on image (sprite) on Button 1 Answer
UI button are sliced after exporting 0 Answers