Set User Avatar
Last updated
Last updated
Support us as a and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude. These articles are made possible by our ... become a sponsor today!
A simple component meant to be attached to a UnityEngine.UI.RawImage
This can update the raw image with the indicated user's avatar and can optionally pull the local user's data on start-up.
This will update if the linked user changes their avatar image.
Occurs when the texture is loaded
The handler for this event would be as such
This can only be set in the Unity Editor and will be false for run time created components or if not set.
This causes the component to grab the local user's ID on startup.
This returns the UserData that this component is currently tracking. Setting this will cause this component to track the user you set to it and is the same as calling LoadAvatar;
Load the selected user's avatar image.