Hello,
After some learming and practical experiments i do not sure what i know most optimal method for following simple and base action…
Unity 5.
3D game.
I have main menu first page of game with bacground image. “Screen Space - Overlay” is working fine (excluding text proection - it is look like no perspective in difference with “World Space” variant) I have tryed “World Space” but in this variant bacground image have some problem with auto resizing depend of screen size (or window size) - sometimes it can be cutted sometimes is smaller than need.
-
Is there optimal method for resizing bacground image to full window (screen) size (without cut it and without not resizing it to al corners of window (screen)) ?
-
If i need to open chield “window”-screen (as example - chield menu) with smaller than base window size over this parent menu (scene) with all described above autosize features - How to do it by most optimal way ? (There are some methods but i not sure which from it is optimal.) It is better if this parent “window” can have management of transparency…
-
Just have appeared another base “question” - Unity is support 1 window (with ability of many virtual “windows”) or it can be multiwindow (i.e. with real multiwindow mode) ?
Best regards,
Oleg
Camera position can globally resize your 3D view.
GameObjects have a scale that you can change to resize them individually.
There are no windows here.
Think in terms of scenes and objects.
For completely separate “windows” (only one visible at a time) you can probably just use different scenes.
For layered “window” (a child window that appears above a parent window) think in terms of GameObjects and ideally prefabs.
Check out the Unity GUI. That is likely what you can use for your “windows/forms” if you are thinking of things like popping up an Options form on top of the main game “window”.
Basically you need to check out the Learn section and watch some videos. This is not like win forms development except at an abstract/conceptual level.
Thanks for information !
Yes, excuse, not so clear wrote by me… i tried to write what i thinking what it is Scene and GameObjects “framework” and i mean “window” is virtual… But not sure about this completelly and also was need confirmation from experienced developers…
Also thanks for confirm about Unity game concept.
It seems you also want to say what in Unity 5 UI there is not standard tool/method for automatical resizing objects (as described in my first message) depend of screen/window (of game) size in “World Space” render mode
and
is need to try my own code for this.
And virtual child “window” can be opened also in “Screen Space - Oberlay” (with automatically resizing (including bacground image)) using new UI objects (and if need another objects types (what is better for described chield “window”-menu ?)) DIRECTLY in the same scene (i.e. parent window, not in new scene)…
It is right ?
…Now have some problem with child “window” menu as new scene in “Screen Space - Oberlay” without desctroy old scene - because in this case child window is creating over all parent scene instead of be only part of this scene as “window”.
And also in standard presets not found material and settings for necessary transparency of this chield “window” (without some multiple layers/panels (without custom images) it is or too transparent or not transparent completelly)…
BTW, in documentation of Unity developers of Unity is not reccomended to use old GUI now (maybe will be not supported in future)…
If will be another ideas about described and similar, etc. - inform me (and another new developers) please.