GetProfilePicture

Method

Get the profile picture texture for the actor.

Definition

ActorProfilePictureRequest GetProfilePicture()
ActorProfilePictureRequest GetProfilePicture()

Returns ActorProfilePictureRequest

Examples

public RawImage profilePicture;
public Image profilePictureBackground;

public void SetProfilePicture()
{
SpatialBridge.actorService.localActor.GetProfilePicture().SetCompletedEvent((request) => {
profilePicture.texture = request.texture;
});
profilePictureBackground.color = SpatialBridge.actorService.localActor.profileColor;
}
public RawImage profilePicture;
public Image profilePictureBackground;

public void SetProfilePicture()
{
SpatialBridge.actorService.localActor.GetProfilePicture().SetCompletedEvent((request) => {
profilePicture.texture = request.texture;
});
profilePictureBackground.color = SpatialBridge.actorService.localActor.profileColor;
}