Page 1 of 1

Customizing Selector/Usable Appearance

Posted: Thu Oct 22, 2015 10:30 am
by Tony Li
I answered an email about customizing the selector/usable appearance, and I thought I'd post the info here in case it's useful to others.

If you're using legacy Unity GUI, assign a different GUI Skin to the player's Selector component, or specify a different style within the GUI by setting the Gui Style Name field. If the Gui Style Name field is blank, it uses the GUI Skin's default Label field. By default, text appears at the top of the screen (as in the Feature Demo example scene) unless you've also added a Selector Follow Target component to your player, in which case the text will appear above the usable.

- Selector: http://www.pixelcrushers.com/dialogue_s ... ector.html
- Selector Follow Target: http://www.pixelcrushers.com/dialogue_s ... arget.html


If you're using Unity UI, there will be a Unity UI Selector Display component to your player. In this case, find your selector Text elements and change their fonts. For example, if you've added the Generic Bundled UI to your Dialogue Manager, then there's a child named Generic Unity UI Selector Panel. You can find the Text elements under there.

You may have also added a Usable Unity UI component to your usable. If so, then the selector will display this component instead (but only for this usable). To see an example, play Examples/Unity UI Examples/SF Example Scene and target Sergeant Graves. To customize this, edit the Text elements under the Usable Unity UI component.

- Unity UI Selector Display: http://www.pixelcrushers.com/dialogue_s ... splay.html
- Usable Unity UI: http://www.pixelcrushers.com/dialogue_s ... y_u_i.html

Re: Customizing Selector/Usable Appearance

Posted: Sat Oct 24, 2015 2:09 pm
by Arcanor
Thanks Tony, this looks interesting. I will keep it in mind in the future when I'm considering custom context menus for in-game items.