Difference between revisions of "Setting up a project"

From PowerUI
Jump to: navigation, search
(Creating a new UI in a scene)
Line 3: Line 3:
 
== Creating a new UI in a scene ==
 
== Creating a new UI in a scene ==
  
If you're using the [[Main UI]] (and not a [[World UI]]), in your new scene, go to:
+
# If you're using the [[Main UI]] (and not a [[World UI]]), in your new scene, go to:
 +
 
 +
[[File:Create-main-ui.png]]
  
 
GameObject menu > UI > PowerUI > Main UI
 
GameObject menu > UI > PowerUI > Main UI
  
This will create a GameObject called '''main-ui''' in your scene (feel free to rename it). If you click on this GameObject, you'll see that it has a "Manager" component which you can then set your HTML content to. See the [[PowerUI Manager|manager guide]] for more information on that.
+
This will create a GameObject called '''main-ui''' in your scene (feel free to rename it). If you click on this GameObject, you'll see that it has a [[PowerUI Manager|manager component]] on there.
 +
 
 +
# Create a HTML file in your project.
 +
 
 +
Either just create a .html and drop it in, or use a helper UI:
 +
 
 +
[[File:CreateHtml.png]]
 +
 
 +
Create > HTML file
 +
 
 +
# Apply the HTML file to the manager
 +
 
 +
Click on '''main-ui''' and then the PowerUI Manager component to be able to select the Html file for it:
 +
 
 +
[[File:ApplyHtml.png]]
 +
 
 +
Note that the [[PowerUI Manager|manager component]] is designed to be changed.
 +
 
 +
We're really devoted to providing you as much help as we can. If anything doesn't make sense or you need more guidance please don't hesitate to get in touch!

Revision as of 22:47, 12 March 2017

Adding PowerUI to a project is as simple as dropping in the package then delete the example scenes folder. No further setup is necessary aside from running it at least once (so it can automatically setup itself).

Creating a new UI in a scene

  1. If you're using the Main UI (and not a World UI), in your new scene, go to:

Create-main-ui.png

GameObject menu > UI > PowerUI > Main UI

This will create a GameObject called main-ui in your scene (feel free to rename it). If you click on this GameObject, you'll see that it has a manager component on there.

  1. Create a HTML file in your project.

Either just create a .html and drop it in, or use a helper UI:

CreateHtml.png

Create > HTML file

  1. Apply the HTML file to the manager

Click on main-ui and then the PowerUI Manager component to be able to select the Html file for it:

ApplyHtml.png

Note that the manager component is designed to be changed.

We're really devoted to providing you as much help as we can. If anything doesn't make sense or you need more guidance please don't hesitate to get in touch!