Portrait UI
v1.0
Last updated
Was this helpful?
v1.0
Last updated
Was this helpful?
The UI Portrait object, in the prefabs folder, has this component attached to it. It is also used in the demo scene. This is the UI prefab which displays the portraits in your scene.
The RawImage
and Image
, shown here in green, should be in the Required fields on the PortraitUI component. The Border and Background, highlighted in pink, are in the UI Images array, which means the PortraitAvatars
class can set their color values.
UI Transition Time and Image Transition Time control how long it takes to transition from an existing color to a new color, when a new color is set.
Don't forget you can create a class which derives from PortraitUI
and add additional functionality to this object.