Answers for "how to scale gameobjects to the scale of the screen size in unity"

1

how to change the size of ui in script unity

_image.rectTransform.sizeDelta = new Vector2(width, height);
Posted by: Guest on March-19-2020
0

Make a VStack fill the width of the screen in SwiftUI

struct ContentView : View {
        var body: some View {
            VStack(alignment: .leading) {
                Text("Hello World")
                    .font(.title)
                Text("Another")
                    .font(.body)
                Spacer()
            }
            .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity, alignment: .topLeading)
            .background(Color.red)
        }
    }
Posted by: Guest on November-28-2019
1

how to get the screen dimensions in java

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Posted by: Guest on April-24-2020

Code answers related to "how to scale gameobjects to the scale of the screen size in unity"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language