Create a custom Dialogue background image
- supadupa64
- Posts: 200
- Joined: Sun Mar 06, 2016 9:40 pm
- Contact:
Create a custom Dialogue background image
How can I load up a custom dialogue background image? Thanks!
Game I'm working on:
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Re: Create a custom Dialogue background image
Hi,
The specifics depend on which GUI system you're using, but the basic idea is the same: assign the image to the Dialogue Panel.
Unity UI is a good choice. It's built into Unity, and it's powerful. Here are some basic steps:
More info:
The specifics depend on which GUI system you're using, but the basic idea is the same: assign the image to the Dialogue Panel.
Unity UI is a good choice. It's built into Unity, and it's powerful. Here are some basic steps:
- Add the Dialogue Manager prefab (in the Prefabs folder) to your scene. Assign your dialogue database to it.
- Select the menu item GameObject > Break Prefab Instance. This way you can't accidentally overwrite the original prefab.
- In the Hierarchy, expand Dialogue Manager > Canvas > Generic Unity UI Dialogue UI and inspect Dialogue Panel.
- Set Canvas Group > Alpha to 1. (Before playing, or at least before releasing your game, set Canvas Group > Alpha back to 0. This prevents an ugly one-frame flash of the dialogue panel when you start the scene.)
- Enable the Image component and assign your background image.
- Resize the UI elements to your liking. If you're not familiar with Unity UI yet, Unity's UI tutorials are helpful.
More info:
- Unity UI Dialogue UI
- Dialogue UIs in general (good info on the general structure of dialogue UIs)
- Unity UI Dialogue UI video tutorial
- supadupa64
- Posts: 200
- Joined: Sun Mar 06, 2016 9:40 pm
- Contact:
Re: Create a custom Dialogue background image
Ok, so I got it to work (sorta), except I guess now it's in custom mode. Is there a tutorial for this?
Game I'm working on:
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Website: http://www.RuctionGames.com
Steam: http://store.steampowered.com/app/49682 ... en_Tablet/
Re: Create a custom Dialogue background image
Hi,
What do you mean by custom mode?
The last link in my previous post is a video tutorial.
What do you mean by custom mode?
The last link in my previous post is a video tutorial.