This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
global:gui [2016/09/28 05:03] Mistermind [Screens] |
global:gui [2022/12/24 23:23] (current) FreedTerror |
||
---|---|---|---|
Line 2: | Line 2: | ||
Here you can set several in-game GUI options and freely use the information in your own GUI scripts. | Here you can set several in-game GUI options and freely use the information in your own GUI scripts. | ||
- | It's recommended that you go through [[https:// | + | It's recommended that you go through [[https:// |
Line 29: | Line 29: | ||
**Use Canvas Scaler:** Use the dynamic canvas scaler system (recommended). | **Use Canvas Scaler:** Use the dynamic canvas scaler system (recommended). | ||
- | * Scale Mode: How the Canvas will scale your UI. For more detailed information on Canvas Scale modes, see the [[http:// | + | |
- | * __Constant | + | * **Constant |
- | * Reference Pixels Per Unit: How many pixels of the sprite covers a unit in UI (if sprite' | + | |
- | * Scale Factor: Scale UI elements by this factor. | + | |
- | * __Scale | + | * **Scale |
- | * Reference Pixels Per Unit: How many pixels of the sprite covers a unit in UI (if sprite' | + | |
- | * Screen Match Mode: How to scale the canvas if aspect ratio doesn' | + | |
- | * Match Width or Height: Scale the canvas using as reference the width, height, or somewhere in between. | + | |
- | * Resolution: Reference resolution the UI is designed for. If target resolution is higher, Canvas will scale up; if lower it will scale down. | + | |
- | * __Constant | + | * **Constant |
- | * Reference Pixels Per Unit: How many pixels of the sprite covers a unit in UI (if sprite' | + | |
- | * Physical Unit: Specify position and sizes in either Centimetres/ | + | |
- | * Fallback Screen DPI: Assume this DPI is DPI unknown. | + | |
- | * Default Sprite DPI: DPI setting for sprite with Pixels Per Unit setting that matches Reference Pixels Per Unit. | + | |
- | * Update Canvas Preview: If you made any alteration to the variables above with one of the screens opened, click here to update the preview. | + | |
---- | ---- | ||
Line 100: | Line 100: | ||
---- | ---- | ||
===== Video Tutorial ===== | ===== Video Tutorial ===== | ||
- | {{youtube> | + | {{youtube> |
+ | {{youtube> | ||
---- | ---- |