• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by wenhua · Dec 20, 2011 at 06:47 AM · graphic

How to make Full Screen at different pc

i wanted the game when builded, its able to make/set to full screen at different pc, as different pc have different resolution.so how am i suppose to do?

i got builded 1,under the gaphics

Screen resolution: got those>

640x480 720x480 720x576 800x600 1024x768 1152x864 1280x720 1280x768 1280x800 1280x1024 1360x768 1440x900

But all is too small and cannot full screen

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image syclamoth · Dec 20, 2011 at 07:13 AM 0
Share

When you request the resolutions, it returns the valid resolutions for your screen. If you run it on a computer with a bigger screen, it'll provide you with more options.

avatar image wenhua · Dec 20, 2011 at 08:44 AM 0
Share

so there no way to set to full screen? no other ways??,script? or need to change some configuration??? when is builded able to full screen or control to full screen anythings will do

avatar image Grady · Dec 20, 2011 at 08:54 AM 0
Share

what I would do is, try setting it at the maximum resolution possible in the build settings, see if that works on the other computer, it probably won't, but it's worth a try!

avatar image syclamoth · Dec 20, 2011 at 09:21 AM 0
Share

You can set it to fullscreen in the options dialogue, and whenever you change the resolution at runtime you have the option to set fullscreen then as well. I'm honestly not sure what the question is here- if you'd looked, you'd have seen the fullscreen option right there in the resolutions dialogue!

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by asafsitner · Dec 20, 2011 at 09:07 PM

You can just put `Screen.fullScreen` = true somewhere in your code, maybe connected to a button called "Full Screen" or something. If you want to toggle just use the old Screen.fullScreen = !Screen.fullScreen.

It will set the game to full screen on whatever machine it runs.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image wenhua · Dec 21, 2011 at 01:46 AM 0
Share

Thx for the info, so Screen.fullScreen = true or old Screen.fullScreen = !Screen.fullScreen can only work when its in builded game or also can work in the unity programme when haven build??

avatar image asafsitner · Dec 21, 2011 at 09:28 AM 0
Share

It won't work while running the game in the editor, but should work if you build your game into a standalone or web player.

avatar image
0

Answer by wenhua · Jan 03, 2012 at 03:37 AM

when set to biggest resolution, starting the unity is fullscreen and awhile when come to my game its not full screen

my scrip funtion Start is below

function Start () {

//MainCamera. Screen.SetResolution (1280,800,false);

Why No matter how i choose the resolution 640x480 720x480 720x576 800x600 1024x768 1152x864 1280x720 1280x768 1280x800 1280x1024 1360x768 1440x900 or check or didnt check the Window mode

My game will come to a fix resolution of 1280x800

So why cant be Full Screen ^^

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image syclamoth · Jan 03, 2012 at 04:07 AM 0
Share

I can only assume it's something in a different script that is doing it, then!

avatar image wenhua · Jan 06, 2012 at 01:36 AM 0
Share

since its not in this of what i write, i will show my HUB script first and pls help me check wheres the part need to be chang. i will post on below answer

avatar image
0

Answer by wenhua · Jan 06, 2012 at 01:42 AM

function Start () {

// camera2 = GameObject.Find("User").GetComponent(UserScript);

 //MainCamera.
 Screen.SetResolution (1280,800,false);
 userSwitch = 1; 
 
 //Camera
 mainView2 = GameObject.Find("MainCamera2");
 mainViewCam2 = mainView2.GetComponent(Camera);
 mainView = GameObject.Find("Camera");
 mainViewCam = mainView.GetComponent(Camera);


 mainViewCam2.enabled = false;

 //Waypoints
 GameObject.Find("Home").renderer.enabled = false;
 GameObject.Find("p1").renderer.enabled = false;
 GameObject.Find("p2").renderer.enabled = false;
 GameObject.Find("p3").renderer.enabled = false;
 GameObject.Find("p4").renderer.enabled = false;
 GameObject.Find("p5").renderer.enabled = false;
 GameObject.Find("p6").renderer.enabled = false;
 GameObject.Find("p7").renderer.enabled = false;
 GameObject.Find("p8").renderer.enabled = false;
 GameObject.Find("p9").renderer.enabled = false;
 GameObject.Find("p10").renderer.enabled = false;

//
// //Line

// pathPoints = new Vector3[maxPoints];

// pathLine = new VectorLine("Path", pathPoints, lineMaterial, 12.0,

LineType.Continuous);

 homePos = GameObject.Find("Home").transform.localPosition;

// Debug.Log (homePos);

 homePos.x = ( homePos.x + 3285.686 ) * (570-20) / (824.0381 + 3285.686) + 20;
 
 homePos.z = ( homePos.z + 1327.897 ) * (780-150) / (3300.656 + 1327.897) + 150;

 points1.push(Vector2(homePos.x, homePos.z));

 points2.push(Vector2(homePos.x, homePos.z));

// Debug.Log(points1 + "," + points2);

} this is under start my script too long le lol dunno what part to be post in ,think i just post this first if not,then i will post another 1

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity graphic? 2 Answers

How to : Coloured Edges of a Cube 0 Answers

All GameObjects are now invisible! How do I get them back? 2 Answers

Particle system ends with shuriken graphic 1 Answer

Combine mesh and merge the neighboring vertices 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges