Implements: BaseComponentView, IProfileCardComponentView, IComponentModelConfig
Model: ProfileCardComponentModel
A card that represents an user profile.
ProfilePictureSprite: Profile image source (for images from aSprite).ProfilePictureTexture: Profile image source (for images from aTexture).- NOTE: It only applies if
ProfilePictureSpriteis set asnull.
- NOTE: It only applies if
ProfilePictureUri: Image source (for images from anurl).- NOTE: It only applies if
ProfilePictureSpriteandProfilePictureTextureare set asnull.
- NOTE: It only applies if
ProfileName: Name of the user.ProfileAddress: Wallet address of the user.
void Configure(BaseComponentModel newModel): Fills the model and refreshes the profile card component with this data.Button.ButtonClickedEvent onClick: Event that will be triggered when the profile card is clicked.void SetProfilePicture(Sprite sprite): Set the profile picture directly from a sprite.void SetProfilePicture(Texture2D newPicture): Set the profile picture from a 2D texture.void SetProfilePicture(string uri): Set the profile picture from an uri.void SetProfileName(string newName): Set the profile name.void SetProfileAddress(string newAddress): Set the profile address. It will only show the last 4 caracteres.void SetLoadingIndicatorVisible(bool isVisible): Active or deactive the loading indicator.
- Drag the prefab to your scene.
- Configure the model from the inspector.
- Click on [REFRESH].
