PSD to Mobile UI Tutorial

Similar documents
Better UI Makes ugui Better!

Better UI Makes ugui Better!

UI Elements. If you are not working in 2D mode, you need to change the texture type to Sprite (2D and UI)

Better UI Makes ugui Better!

Unit 21 - Creating a Navigation Bar in Macromedia Fireworks

Sprite Animix. Content. Sprite Animix Version 1.0

IT153 Midterm Study Guide

ADOBE TRAINING CS6 PHOTOSHOP BASICS: EDITING PHOTOS & WORKING WITH TEXT - 1

How to use the ruler, grid, guides, and the Align panel

Adobe Photoshop Sh S.K. Sublania and Sh. Naresh Chand

MULTIMEDIA WEB DESIGN

: Rendered background can show navigation mesh : Multi-level backgrounds, priority backgrounds and Z-ordering.

Report Designer Report Types Table Report Multi-Column Report Label Report Parameterized Report Cross-Tab Report Drill-Down Report Chart with Static

Comic Life. Creating Photo Comics. Classroom Course Manual

StitchGraph User Guide V1.8

Paint Tutorial (Project #14a)

Overview of Adobe Fireworks

Designer Reference 1

Tutorial: Options Menu Layout

Note that the reference does not include the base directory or an initial backslash. The file extension for UI canvases should be included.

How to...create a Video VBOX Gauge in Inkscape. So you want to create your own gauge? How about a transparent background for those text elements?

Report Generator for DPOPWR

8/16/2014 UNITYCODER.COM MOBILE PAINT

Adobe Indesign for Beginner - Session Structure

Chart And Graph. Features. Features. Quick Start Folders of interest Bar Chart Pie Chart Graph Chart Legend

13 PREPARING FILES FOR THE WEB

Step 1: Create A New Photoshop Document

Step-By-Step Instructions for Using InDesign

ITP 101 Project 2 - Photoshop

AGENDA. :: Homework Upload. :: Photoshop Lesson 4: Creating a PSD Wireframe [Homepage] I. DOCUMENT SET-UP: II. DRAWING SHAPES III.

Game Design Unity Workshop

HTML Exercise 21 Making Simple Rectangular Buttons

:: MULTIMEDIA TOOLS :: CLASS NOTES

Adobe Fireworks CS Essential Techniques

How to export and save files

INTRODUCTION 3 SYSTEM REQUIREMENTS 4 PACKAGE CONTENT 4 CHANGELOG 4 FAST GUIDE 8 PSD2UGUI IN DEPTH 12 PSD LAYERS STRUCTURES 14

Working with Tables in Microsoft Word

INKSCAPE BASICS. 125 S. Prospect Avenue, Elmhurst, IL (630) elmhurstpubliclibrary.org. Create, Make, and Build

SETTINGS AND WORKSPACE

User s Guide to Creating PDFs for the Sony Reader

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

SHAW ACADEMY NOTES. Diploma in Lightroom

Tutorial 17: Desert City Tutorial

Creating a Multi-line Plate

Numbers Basics Website:

Creating Interactive PDF Forms

Tutorial (Intermediate level): 3D Model Reconstruction of the building with Agisoft PhotoScan 1.0.0

Developer s Tip Print to Scale Feature in Slide

Overview of Adobe Fireworks CS6

USING DATA DRIVEN PAGES

Adobe Flash CS4 Part 1: Introduction to Flash

Working with Rounded Corner Layouts in CSS Sculptor 2.0

This Tutorial is for Word 2007 but 2003 instructions are included in [brackets] after of each step.

VisualPST 2.4. Visual object report editor for PowerSchool. Copyright Park Bench Software, LLC All Rights Reserved

User Manual Version 1.1 January 2015

Cropping an Image for the Web

Google SketchUp/Unity Tutorial Basics

Using advanced DVD authoring techniques with Encore

P3e REPORT WRITER CREATING A BLANK REPORT

Adobe Fireworks CS Essential Techniques

Channel Packer - version 0.90

The figure below shows the Dreamweaver Interface.

Sending image(s) to report Click Send Snapshot on any screen in Dolphin3D and choose the Send to Report option

Creating Buttons and Pop-up Menus

Guide to WB Annotations

Working With Images: Intermediate Photoshop

Working with Images and Multimedia

Creating a new project To start a new project, select New from the File menu. The Select Insert dialog box will appear.

Part II: Creating Visio Drawings

4.0 - ENGRAVING TEXT AND A BARCODE ON ALUMILAZ

HO-1: INTRODUCTION TO FIREWORKS

Using Contact Sheets in Adobe Lightroom

JASCO CANVAS PROGRAM OPERATION MANUAL

DESIGNING A WEBSITE LAYOUT IN PHOTOSHOP CS4. Step 1

How to lay out a web page with CSS

HAPPY HOLIDAYS PHOTO BORDER

Tutorial: How to Load a UI Canvas from Lua

CHANNEL DESIGN GUIDELINES

ESCHERLIKE developed by Géraud Bousquet. User s manual C03-04 STROKE WIDTH C03-05 TRANSPARENCY C04-01 SAVE YOUR WORK C04-02 OPEN A FILE

CS Multimedia and Communications REMEMBER TO BRING YOUR MEMORY STICK TO EVERY LAB! Lab 02: Introduction to Photoshop Part 1

Paint/Draw Tools. Foreground color. Free-form select. Select. Eraser/Color Eraser. Fill Color. Color Picker. Magnify. Pencil. Brush.

MULTIMEDIA WEB DESIGN

L E S S O N 2 Background

Introduction. QuickStart and Demo Scenes. Support & Contact info. Thank you for purchasing!

In this exercise you will be creating the graphics for the index page of a Website for children about reptiles.

Let s Make a Front Panel using FrontCAD

Pong in Unity a basic Intro

Workshop BOND UNIVERSITY. Bachelor of Interactive Multimedia and Design. Asteroids

Importing the Source Models. Placing a 3D Model in the Workspace. Modified by on 25-Jul-2014

Quick Guide for Photoshop CC Basics April 2016 Training:

Adding Objects Creating Shapes Adding. Text Printing and Exporting Getting Started Creating a. Creating Shapes Adding Text Printing and Exporting

ILLUSTRATOR TUTORIAL-1 workshop handout

InDesign - Basic Spring Indesign. Setup a new document

Adding A Signature To A Photograph By Jerry Koons

With the help of Adobe and a dash of creativity, we can create all kinds of fun things just using the shapes found in our tool box.

Quick Crash Scene Tutorial

PixelSurface a dynamic world of pixels for Unity

Creating Forms. Starting the Page. another way of applying a template to a page.

Netscape Composer: Working with Tables

Creating Web Pages with SeaMonkey Composer

Transcription:

PSD to Mobile UI Tutorial

Contents Planning for design... 4 Decide the support devices for the application... 4 Target Device for design... 4 Import Asset package... 5 Basic Setting... 5 Preparation for Photoshop... 6 How to make PSD file... 7 Common rule... 7 Units & Rulers... 7 PNG layer... 8 PSD file for Layout... 8 Nested Layer... 8 Text Layer... 9 Colored Layer... 9 PSD file for Parts... 10 9slice... 10 Tile... 11 Make JSON file... 11 Create new scene in Unity... 12 Bring assets into Unity... 12 2 PNG files... 12

JSON files... 12 Font files... 13 Adjust texture... 14 Create Custom Game Screen... 15 Create Scene... 15 After scene creation... 16 Update design... 17 Adjust position and scale of UI parts... 17 Add new UI parts... 18 Other... 18 Specify scale type and orientation for each scenes... 18 Select Texture... 19 Scene Directory... 19 Optimize to Editor in Game Screen... 20 Ignore font names... 21 Open Main Panel... 21 3

Planning for design Decide the support devices for the application Before start to create application, you should decide the support devices for the application. There are various screen size of mobile phone in the world. For example, iphone4s has a small screen and Nexus9 has a large one. And many native applications adjust their UI layout fitting the device screen size. Think about a Tool bar on the top of screen, the height of the toolbar at the height of the entire application on Nexus 9 is shorter than that on the iphone 4. With this package, you can create such application which has responsive design. Target Device for design Please select one device from the devices your application will support. It is recommended to be the medium screen size among the all supported devices. For example Nexus5. It will the target device for design. It means that the appearance on Photoshop is the same as the look on that device. 4

Import Asset package After importing asset package, you will find two panels titled Basic Setting, PSD to Mobile UI. PSD to Mobile UI is the main panel of this package. At first, we should do setting on Basic Setting. Basic Setting On this panel, we can set the basic setting. There are default devices in Target Device section. You can change them to your devices you want to support. Pixels expects 2 numbers, in order of short side and long side. DPI is dot per inch. You should find the information from the specification of the device. In Other, you decide the directory for scenes. And input the pixels of the Photoshop documents. 5

Canvas Scale Type contains 3 types. Physical (UI layout will be adjusted like a responsive design.) Match Width (UI layout will be scaled match the screen width.) Match Height (UI layout will be scaled match the screen height.) There are other settings, but in this time, please press the 'Save setting' button and close this panel. You can change it later. Preparation for Photoshop Open the directory of the imported asset package in Finder. You will find two jsxbin files. There are script for Photoshop to export the information of layout and slice/tile setting. To use them, copy to the Photoshop application directory. OSX: /Applications/Adobe Photoshop XXX/Presets/Scripts/ Win: [Adobe Photoshop Installation Path] Presets Scripts 6

How to make PSD file There are two kinds for PSD file. One of them layout of each scene. Other one is for slice and tile setting. Setting will be exported as JSON file. And export PNG files by the function of Photoshop. If you name the layer or layer set to the word ended with.png, you can get PNG files. It is a function of Photoshop. To use this function, Go to File/Generate/Image Assets and check it. Common rule Units & Rulers First you need to set Units & Rulers for Photoshop. Open "Preference / Units & Rulers" and make both Units and Type to Pixels. 7

PNG layer The layers name ended with.png will be a UI parts has Image component in Unity. There is no difference between layer and layer set. The size of Rect Transform is determined by the opaque area of the layer or layer set. However, there are cases in which UI parts also include transparent areas. For example, buttons and so on. If you want to align the images of the state when 'default' and ' pressed', you can do it by using a special layer name '@bounds'. '@bounds' is a layer for specifying an area of UI, filling in a rectangle with a solid color. The color can be anything. Hide it so that it will not be exported to png. However, if '@ bounds' is hidden, the specified area will not be reflected in png. Make a layer mask with the same size as @bounds. PSD file for Layout Nested Layer Nested layer sets will nests UI parts in Unity. A layer set that does no have a special name like png will be a node with only 'Rect Transform' without Image component in Unity. It can also have @bounds. If there is no layer containing UI elements such as images in below or deep hierarchy, that layer set is not included in the export target. 8

Text Layer A layer set whose layer name ends with text becomes a Text component in Unity. The text, font name, and font size of the text layer will be read. In order to get the area, align, layer set must include '@bounds'. The text anchor is determined to be one of 9 depending on the positional relationship between @bounds and the text layer. If it is an ambiguous position it will not be reflected correctly. Colored Layer A layer whose layer name ends with color becomes a filled Image node in Unity. It is useful for borders and backgrounds. The color of the upper left pixel of the layer will be read. 9

However, if the upper left corner is hidden in another layer, specify the position to pick the color with the layer named @color. It is an invisible layer painted square like @bounds. One pixel is sufficient for filling, but if it is larger than that, it will be the upper left pixel. PSD file for Parts In the UI parts, there are things you want to set 9 slices like rounded buttons, the background you want to fill with a tiling pattern, and so on. If you set these in Photoshop in advance, it can be reflected in Unity UI. The PNG layer name should be the same name as one of the PSD for the layout. However, the size is different. For example, 9 slice buttons are not as large as those for layout, so make it smaller. 9slice 9 slice can be set by creating a layer named @slice. As in @bounds, it is an 10

invisible layer painted solid color, but the filling range is different. Fill the center rectangular area delimited by two vertical and two horizontal lines of the sprite editor in Unity. Tile You can set tiles by creating a layer named @tile. The way to make it is exactly the same as @bounds, its name is just different. Make JSON file To export a JSON file for layout, open the PSD file for layout and open file menu "File/Scripts/PSD To Mobile UI Layout". Then the script is executed and the JSON file is exported to the same directory as the PSD file. "_layout" suffix is added to the file name of the JSON file. For Slice / Tile, select "PSD To Mobile UI Slice Tile". Suffix of JSON file is _slicetile ". 11

Create new scene in Unity Bring assets into Unity PNG files Prepare a folder for placing textures in Unity project. PNG files are in the folder with the suffix "- assets" in the same hierarchy as the folder containing the PSD. Copy it to the texture folder. Copy PNG for both For layout' and 'For slice / tile'. Be careful that PNG for 'slice / tile' is not overwritten by 'for layout' because it contains the same filename. The PNG file name must be unique within the Unity project. Do not put textures with the same name in different folders. JSON files Copy the JSON file for layout and slice/tile into the 'Assets/PSDToMobileUI/UserData' of the Unity project. 12

Font files If you want to specify a font other than Arial for the font of the layout PSD text, prepare a folder to put fonts in Unity and copy the font file. By default, Assets / Fonts is a folder for fonts, but if you want to change to another folder, change it with Basic Setting. Basic Setting opens with the "Edit" button in the upper right of the main panel. Set in the "Font Directory" of the "Font List" and save with "Save Setting" button. If you put a font file in the font folder or press the Search And Add To List button, font files will be automatically added to the Font List. 13

The font name may differ from the font name imported into Unity and the font name in Photoshop. If there is a difference, set the font name same as in Photoshop in the font list. Adjust texture Texture for UI must be set the texture type Sprite (2D and UI). If Default Behavior Mode of Editor Setting is 3D, change the texture type. Adjust "Pixels Per Unit" value of the sprite so that the 9slice and tile textures match the resolution of the device. In the pane of Texture / Sliced / Tiled Texture, select Selected PSD and press Select button. The corresponding texture in the project is selected. Confirm that the texture is selected, and press the Adjust button. The value of Pixels Per 14

Unit of the selected texture is updated. Create Custom Game Screen Create a game screen so that it looks the same as on the device. By pressing the "Create" button on the Custom Game Screen pane, game screens suitable for the devices registered in the Basic Setting is created. Create Scene In the PSD pane, select the PSD of the scene you want to create and press the "Create Scene" button. A new scene is created with the UI parts arranged. 15

After scene creation Looking at the automatically generated scene, it looks like it was completed. However, if you switch the game screen to another screen size device, you can see the margin on a big screen like Nexus9, and you cannot display all the screen on a small screen like iphone4s. Adjust the Rect Transform of the UI part so that it looks good on every device. 16

If you select a PSD layer in the main panel, the node with the same name in the hierarchy of the scene is selected. Adjust Rect Transform with Inspector. We will do this for all necessary UI parts. After the adjustment, the UI will be visible properly on any device. Update design Adjust position and scale of UI parts It is common for designs to be modified after creating scenes. If you want to adjust the position and size, select the PSD layer and parts of the scene and press the adjust button. 17

Add new UI parts If you want to add a new part, select the node you want to place the part from the scene and press the add button on the PSD layer. Other Specify scale type and orientation for each scenes If you want to set a scale type of a certain scene different from the basic setting, select it individually from the PSD scale type. 18

Select Texture 'Select Texture' in the main panel is a tool to select texture in the project. You can select only the textures used in the current scene or containing the specified word in the name. Scene Directory Newly created scenes are saved in Assets / Scenes, but if you want to save them in other directories, you can change the directory in Scene Directory on Basic Setting. 19

Optimize to Editor in Game Screen Looking at 9 slices and tiling, there is a difference between appearance on Photoshop and on the game screen. This is related to measures to keep the resolution high in the game view. Originally Physical Unit of Canvas is Points, but it is being adjusted as Millimeters. If you set it to Points, 9 slices and tiling will look the same as Photoshop, but the resolution on the editor will be low, making the layout work harder. For this reason it is set like this. If you want to check the physical size of the canvas as Points and check it on the game screen, uncheck Optimize to Editor and press the Create button to recreate the game screen. However, since the physical units of the canvas do not match, press Adjust Canvas Scale to adjust. By the way, Physical Scale can be either Points or Millimeters. It will be changed to Points when it is executed on the actual device by the component 'PTMCanvasAdjuster' added to the GameObject of Canvas. 20

Ignore font names If you want to specify the system font, you can use Arial for English, but for other languages, an error will appear because there is no font when creating the scene. In Ignore Font Names in PSD of the basic setting, register the font name you want to skip the existence check, the error dialog will not be displayed. Open Main Panel If you want to open the main panel again after closing, you can do it from 'Window / PSD to Mobile UI' in the menu bar of Unity. 21